strongsalt-crypto-js
v1.0.6
Published
## Usage npm install strongsalt-crypto-js ``` const SSC = require('strongsalt-crypto-js') const key = new SSC('XCHACHA20') ``` ### Compatibility Both Node.js and browsers are supported. If needed, a bundled and minified build for the browser can be foun
Downloads
4
Readme
strongsalt-crypto-js
Usage
npm install strongsalt-crypto-js
const SSC = require('strongsalt-crypto-js')
const key = new SSC('XCHACHA20')
Compatibility
Both Node.js and browsers are supported. If needed, a bundled and minified build for the browser can be found at /ssc-bundle.min.js
Contributing
npm install
cd browser
npm install
Run Tests Nodejs
test are run with the Jest test runner.
'npm run test' or 'npx jest' will run all test files with suffix .test.js
run individual file 'npx jest path/to/file.test.js'
Run Tests for browser
from root of project run 'npm run dev'.
Edit browser/browserTests.js as needed.
Nagivate to localhost:3000 in your browser
Open your debugger console in the browser. (for mac Command + Option + j) or right click "Inspect".
The results of the test will be logged out. If a test fails, and error is thrown. No test runner is used.
Build Browser Bundle
npm run build-browser