npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

elastos_carrier_addon

0.0.9 • Public • Published

Introduce

elastos_carrier addon is the Node.js Add-on for Elastos Carrier. It allows Javascript code to call Carrier C++ functions.

Installation

nstall with npm:

    npm install elastos_carrier_addon

Example

    const carrierSdk = require('elastos_carrier_addon');
    console.log(carrierSdk.getVersion());
 
    var carrier = carrierSdk.createObject(opts, callbacks);
    carrier.on("idle", idle_callback); //add idle event
    carrier.on("idle", null); //delete idle event
 
    carrier.run();

See demo for more detail.

install

npm i elastos_carrier_addon

Downloadsweekly downloads

21

version

0.0.9

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability