The lib itself consists of two parts — core.js
where's located API reference and core helpers; and <platform-name>.js
where is located platform-depended code.
Usage:
- Copy
core.js
to your project. - Import API (default export) from
node.js
. Example:import API from '../api/browser.js';
- Call methods directly from
API
object. Example:await API.login("pubkey", "password", "2fa_pin")
That's it. Enjoy :)