elca

0.0.15 • 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 more.](https://github.com/elastos/Elastos.NET.Carrier.Nodejs.SDK/tree/master/example/demo)

/elca/

    Package Sidebar

    Install

    npm i elca

    Weekly Downloads

    8

    Version

    0.0.15

    License

    MIT

    Unpacked Size

    3.55 MB

    Total Files

    6

    Last publish

    Collaborators

    • kuit