node-jose icon indicating copy to clipboard operation
node-jose copied to clipboard

Angular Support: To make node-jose work in angular apps

Open NewtonJoshua opened this issue 5 years ago • 1 comments

Dependencies Added:

  • browserify-zlib: If Node's 'zlib' can't be resolved use browserify-zlib that emulates zlib module for the browser
  • buffer: make buffer, that emulates node's Buffer API, available globally in the browser
  • process: make process, that emulates node's Process API, available globally in the browser
  • stream-browserify: this should be used by zlib/browserify-zlib instead of 'stream'. Should be mentioned in angular compiler options.

The steps to use node-jose in angular app is added in the readme file.

It is published to https://www.npmjs.com/package/node-jose-browserify

npm i node-jose-browserify

NewtonJoshua avatar Aug 29 '19 10:08 NewtonJoshua

Just my 2c / I think this is best kept as a separate library rather than cluttering up this core library with irrelevant code.

davesag avatar Sep 16 '20 09:09 davesag