1.0.5 • Published 6 years ago

@coinwisebr/safewise.js v1.0.5

Weekly downloads
1
License
LGPL-3.0
Repository
github
Last release
6 years ago

safewise.js

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.js

Flow

safewise.js 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 npm run check

Build

to build production bundle run npm run build

eslint

npm run eslint

Using safewise.js in a web app

We are winding down safewise.js for web apps. Please use SafeWISE Connect.

Using safewise.js in a node app

safewise.js 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.js API

API is explained in API.md