@purecars/oauth-js
v1.1.2
Published
Minimal Oauth 2.0 library for the browser
Downloads
3
Readme
Oauth JS
Contents
Features
- Minimal Oauth 2.0 client library
- Simple management of Oauth flow
- Compliant with bundle tree-shaking
Contributing
npm start
- execute code insrc
directory with live reload vianodemon
transpiled withbabel-node
npm run serve:dev <target>
- execute target code with live reload vianodemon
transpiled withbabel-node
npm run benchmark
- run benchmark tests withbenchmark.js
npm run benchmark:watch
- run benchmark tests withbenchmark.js
and watch for file changesnpm run lint
- code linting witheslint
npm run lint:fix
- fix problems automatically witheslint
npm test
- run tests withmocha
andchai
with spec as reporter andnyc
code coveragenpm run test:watch
- run tests withmocha
andchai
and watch for changesnpm run test:report
- export tests results as html files in the./reports
folder viamochasome
npm run build:dist
- transpile and minify ES6+ code and create sourcemaps withbabel
&babili
npm run serve:dist
- serve production files from the./dist
folder vianode
npm run scan:security
- run vulnerability tests via the node security platformnsp
Testing
Testing with Mocha and Chai, HTML Reports via mochawesome
npm test
Benchmarking Suite
Benchmark Testing with Benchmark.js
npm run benchmark
Security
Run vulnerability tests via Node Security Project