1.1.1 • Published 5 years ago

@coinwisebr/safewise-jsapi v1.1.1

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

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