Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

NewtonJoshua
Copy link

@NewtonJoshua NewtonJoshua commented Aug 29, 2019

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

@davesag
Copy link

davesag commented Sep 16, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants