JSPM

  • Created
  • Published
  • Downloads 2711170
  • Score
    100M100P100Q199399F
  • License MIT

Common layer to be used by crypto libraries based on WebCrypto API for input validation.

Package Exports

  • webcrypto-core

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (webcrypto-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

License Build Status Coverage Status

NPM

webcrypto-core

We have created a number of WebCrypto polyfills including: node-webcrypto-ossl, node-webcrypto-p11, and webcrypto-liner. webcrypto-core was designed to be a common layer to be used by all of these libraries for input validation.

Unless you intend to create a WebCrypto polyfill this library is probably not useful to you.

Dependencies

Install all dependencies

npm install

NOTE: npm install command downloads and installs modules to local folder. You can install all dependencies globally

typescript

npm install typescript --global

rollup

npm install rollup --global

mocha

npm install mocha --global

Single line command for all modules

npm install typescript rollup mocha --global

Compilation

Compile the source code using the following command:

npm run build

NOTE: Command creates webcrypto-core.js and webcrypto-core.min.js files in build folder

Compile the source code with declaration using the next command:

tsc --declaration

Test

npm test

Size

Files Size
webcrypto-core.js 59Kb
webcrypto-core.min.js 25Kb