@devolutions/picky
v0.12.0
Published
Portable X.509, PKI, JOSE and HTTP signature implementation.
Downloads
9
Keywords
Readme
Picky WASM
JavaScript bindings to picky
using wasm-bindgen.
Build & publish
This should be run in the CI.
Install
wasm-pack
.Build the package:
$ npm run build
Publish to npm:
$ npm publish
Testing
Some tests can be in Firefox in headless mode:
$ wasm-pack test --headless --firefox
Other tests are run using nodejs
and the ava
testing framework.
For these, you need to build the npm package targeting nodejs
:
$ wasm-pack build --target nodejs --scope @devolutions --out-name picky
Rename @devolutions/picky-wasm
to @devolutions/picky
in pkg/package.json
.
Run the ava
tests
cd ava_tests
npm install
npm test