Nomadic People Migration
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    librrpublic

    librr.js

    RoadRunner C-library wrapper for Node.

    Uses FFI to call the RoadRunner native libraries. FFI bindings were generated using ffi-generate.

    Installation

    Install using NPM with: npm install librr

    and include librr with: librr = require('librr');

    Example Usage

    var rr = require('librr').librrc_api;
    
    console.log(rr.getAPIVersion());
    
    var myrr = rr.createRRInstance();
    rr.setTempFolder(myrr, '/tmp');
    console.log(rr.getTempFolder(myrr));
    var currentDir = rr.getWorkingDirectory();
    console.log(currentDir);
    rr.loadSBMLFromFile(myrr, currentDir + '/feedback.xml');
    console.log(rr.getCurrentSBML(myrr));
    console.log('number of floating species: ' + rr.getNumberOfFloatingSpecies(myrr));
    var results = rr.simulate(myrr);
    console.log('results are: \n' + rr.rrDataToString(results));
    

    Keywords

    none

    install

    npm i librr

    Downloadsweekly downloads

    3

    version

    0.1.0

    license

    none

    last publish

    collaborators

    • avatar