0.0.1 • Published 10 years ago
nrsession v0.0.1
nrsession
Fetch npm modules and jump into a repl
install
$ [sudo] npm install -g nrsessionusage
$ nrsession [...modules]example
Start a session with batch and superagent as a NPM dependency.
$ nrsession batch superagentAfter bootstrapping you will be put into a session where those modules are available to be loaded.
nr> const Batch = require('batch');
nr> const agent = require('superagent');
nr> const tasks = new Batch();
nr> const resources = [RESOURCE_A, RESOURCE_B, RESOURCE_C];
nr> resources.forEach(resource => task.push(done => agent.get(resource).end(done)));
nr> tasks.end((err, res) => console.log(err, res));license
MIT
0.0.1
10 years ago