node-jose
node-jose copied to clipboard
Angular Support: To make node-jose work in angular apps
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
Just my 2c / I think this is best kept as a separate library rather than cluttering up this core library with irrelevant code.