README
safewise-jsapi
Javascript API for SafeWISE.
We are currently migrating from this library to SafeWISE Connect. When SafeWISE Connect is done and tested, this library will be deprecated.
Right now, you can use this library for integrating into node js apps.
Install with npm
npm install --save safewise-jsapi
Flow
safewise-jsapi is annotated with Flow types; if you want to use Flow and use the previous setup, it will use the right types. Note that you might have to set up .flowconfig
to include all the modules and interface files in our flowconfig
to run flow use make flow
Build
to build production bundle run make build
eslint
make eslint
Using safewise-jsapi in a web app
We are winding down safewise-jsapi for web apps. Please use SafeWISE Connect.
Using safewise-jsapi in a node app
safewise-jsapi should be possible to use from node.js if the user has SafeWISE Bridge installed, because origin URLs are spoofed.
SafeWISE used to work with node HID API directly, but the binary API and the various node versions got too hard to manage, so we removed them.
safewise-jsapi API
API is explained in API.md