Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

freedom-for-node

freedomjs234Apache-2.00.2.20

Embracing a distributed web

readme

freedom-for-node

Build Status Build Status Code Climate A freedom.js Distribution for inclusion by Node.js.

Installation

npm install --save freedom-for-node

Running

Creating a freedom.js application from node is identical to the case in the browser. You can find the freedom object exported from the module.

require('freedom-for-node').freedom('path/to/module.json', {}).then(function(Root){
var root = new Root();
root.on('event', function(data) {
    // Do things.
});
root.emit('message', 'my Message');
});