Questions tagged [npm-package]

464 questions
0
votes
1 answer

node xml package not working with keys having : in it

I am going to send XML response from my node js api. Currently I am using xml - npm package When I am sending data like following res.set('Content-Type', 'text/xml'); let example5 = [ { toys: [ { _attr: { decade:…
Shailesh Daund
  • 170
  • 1
  • 11
0
votes
1 answer

Angular: Include third party dependency in custom angular library

I am trying to create a library as npm package using ng generate library ts-utils command This library use of a dependency called memoizee, where we include the library and its respective @types in the peerDependencies section of the library. NOTE:…
0
votes
1 answer

Why do my other methods run before the prompt-list selection is done?

I'm currently working on a proof-of-concept for a web app that will be used by two users. For this, I'm simulating the process within the terminal (very very basic). What I'm trying to do is to demonstrate the initial "linking" of the two users.…
Oliver
  • 25
  • 1
  • 6
0
votes
1 answer

ng-payment-card : expiration year's dropdown doesn't contain proper options

I'm using ng-payment-card in my project and I had a serious issue in the expiration year's dropdown list, because the options contain only this year + a few years later only. anyone found a solution for this problem??
James.mikael
  • 99
  • 1
  • 9
0
votes
0 answers

NPM / typescript / node.js Export functions from non module package

I have 2 different projects which have some common functions. Project 1 : Authentication + api 1 (express but not important) Project 2 : Api 2 (express) Is it possible to export Authentication function from Project 1 and use it in Project 2 ? I…
Christophe.S
  • 1
  • 1
  • 2
0
votes
0 answers

Why npm build will not include my types directory?

I have this project dir tree for my npm package development: src/ @types/ index.d.ts index.ts tsconfig.js package.json src/index.ts contents: import { MyObject} from "./@types"; const l:MyObject = new…
koalaok
  • 5,075
  • 11
  • 47
  • 91
0
votes
0 answers

How does Stagger Text Reveal Animation work?

When applying staggering reveal animation effect, suppose you have hundred letters and you want to apply this effect using custom css. Now it's not that hard but it's a lot time taking. First you would have to put each letter in different p tags,…
0
votes
2 answers

How to get EXIF data of an image (JPG, JPEG, PNG) in node js?

I am trying to retrieve EXIF data of an image from which I want to extract GPS related information i.e., Latitude and logitude. So far I have tried atleast 4-5 EXIF packages available in npm/node - exif, exif-parser, node-exif, exifr, exif-js and…
0
votes
1 answer

Angular structure loaded both synchronously and asynchronously when adding primeng tableModule

I had the following error when loading TableModule from primeng into my components module file and trying to run 'npm run packagr': Maximum call stack size exceeded I found this solution, to change my primeng version primeng12 to primeng11.4.5. So…
Pippa97
  • 79
  • 1
  • 12
0
votes
0 answers

Make a var, "global" just in the npm Package instead of whole Project in Nodejs

I am transforming my Node MicroServices in npm packages, so that I can run several of them in a single server. They exchanges RabbitMQ messages, so they are independent from the listening server. My problem is that each Ms used global.variables,…
DeLac
  • 1,068
  • 13
  • 43
0
votes
0 answers

NestJs problem using external package methods

I've installed in my NestJs project a MIME library https://www.npmjs.com/package/mime (this is a row in my package.json "mime": "^2.5.2"). I've imported this package in my code in this way: import * as mime from 'mime'; and use some methods like…
Cri
  • 41
  • 1
  • 8
0
votes
0 answers

Observable between library - Angular 11+

I have three library that communicate each others some data. In particular I have a MAP that show some positions with markers, a TABLE that show details of each markers and the third library (we call it SHARED) have some service and observables that…
Edo2610
  • 184
  • 1
  • 9
0
votes
1 answer

npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/easier-discordjs - Not found

Hello im making my first npm package called easier-discordjs but when i do npm link in my main module folder and in my test module folder it gives an error. npm link easier-discordjs npm ERR! code E404 npm ERR! 404 Not Found - GET…
0
votes
1 answer

Javascript, validate object against exported type from npm package

I developed a ClI npm package with TS that consumes a configuration file from a given path. > tool --config="./path/to/config" The configuration file exports a single object which my tool imports. Is there a way I can validate the imported object…
0
votes
0 answers

Add/modify files in npm package through js code

I am using ep-mobx-router v0.2.3 in a react typescript project, which is very similar to mobx-router. The documentation page shows that beforeExit is a hook present in the package, but when I am trying to use it, it gives error that its not present…
JSDrogon
  • 31
  • 8