Swarm Simulator code shared between server and client.
$ npm install --save swarm-shared
# or, locally - in .../swarm-shared/:
$ sudo npm link
# and in some other node.js repo, like .../swarm-server-sails/:
$ cd ../swarm-server-sails
$ npm link swarm-shared
# this works with bower and client-js packages, like .../swarm, too:
$ sudo bower link
$ npm run-script browser
$ cd ../swarm
$ bower link swarm-shared
var swarmShared = require('swarm-shared');
# creates a browser.js
$ npm run browser
GPLv2 © Evan Rosson