eclib is a set of NodeJS bindings for liberasurecode and its backends.
# We rely on node-gyp to build our binaries
npm install -g node-gyp
# Install eclib
npm install eclib --save
# We link to the libraries we installed earlier
# On Linux
LD_LIBRARY_PATH=node_modules/eclib/libs/lib ./your_script
# On OSX
DYLD_LIBRARY_PATH=node_modules/eclib/libs/lib ./your_script
# You may export that environment variable for ease of use.
That's all!
// ES5
var eclib = require('eclib');
var Eclib = new eclib(opts);
Eclib.init();
See the API documentation for a more detailed explanation.
eclib is distributed under the terms of the BSD license.
If you want to contribute in any way, please read our guidelines.