phantomjs-crypto-polyfill

1.0.1 • Public • Published

phantomjs-crypto-polyfill

Simple polyfill that just overrides the getRandomValues crypto function with a dummy function to avoid PhantomJS breaking with when using crypto

Installation

npm install --save-dev phantomjs-crypto-polyfill

Usage

require('phantomjs-crypto-polyfill')

Karma

Include the polyfill in the files list of karma.conf

...
files: [
  './node_modules/phantomjs-crypto-polyfill/crypto-polyfill.js',
  ...
]
...

Package Sidebar

Install

npm i phantomjs-crypto-polyfill

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • sumeetr