Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

hybrix-jslib

0.5.10 • Public • Published

hybrix-jslib

This library can be used to connect software to leverage the capabilities of the hybrix platform. It serves two purposes: first to facilitate the logistics of interfacing with the hybrixd REST API, secondly to handle all client-side operations securely and privately. This ensures that keys required for transaction never leave the users device and communication over an encrypted channel.

Installation

$ npm install hybrix-jslib

Usage

const Hybrix = require('./hybrix-jslib.js');
const hybrix = new Hybrix.Interface({http:require('http')});
hybrix.sequential(
  [
    'init',                                                       // Initialize hybrix
  ],
  ()=>{console.log('Hello World!');},                             // Define action to execute on successfull completion
  error=>{console.log('Oops, something went wrong: '+error);}     // Define action to exectue when an error is encountered
);

Documentation

Library documentation: https://api.hybrix.io/help/hybrix-jslib.js

REST API reference: https://api.hybrix.io/help/api

Keywords

none

Install

npm i hybrix-jslib

DownloadsWeekly Downloads

48

Version

0.5.10

License

GPL-3.0

Unpacked Size

1.8 MB

Total Files

4

Homepage

hybrix.io

Last publish

Collaborators

  • avatar