createHmac icon indicating copy to clipboard operation
createHmac copied to clipboard

How use it in browser?

Open mishell-trickster opened this issue 5 years ago • 4 comments

Its nodejs project. How I must integrate it with my frontend?

mishell-trickster avatar Mar 13 '19 18:03 mishell-trickster

browserify or webpack

calvinmetcalf avatar Mar 13 '19 19:03 calvinmetcalf

@calvinmetcalf requiring the lib consumer's module bundling solution to provide polyfills for native node modules is problematic in some cases. Eg, Angular-CLI 6+.

See: https://github.com/angular/angular-cli/issues/9827#issuecomment-369578814

hansifer avatar Mar 21 '19 20:03 hansifer

Can you indicate how to convert to browser version? I constantly get the issue process is not defined

sundaywork avatar Oct 18 '19 12:10 sundaywork

solved by setting process to 'mock'

sundaywork avatar Oct 18 '19 23:10 sundaywork