Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/littlstar/nrsession
Fetch npm modules and jump into a repl
https://github.com/littlstar/nrsession
Last synced: about 2 months ago
JSON representation
Fetch npm modules and jump into a repl
- Host: GitHub
- URL: https://github.com/littlstar/nrsession
- Owner: littlstar
- License: mit
- Created: 2015-10-11T17:39:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T18:06:26.000Z (over 9 years ago)
- Last Synced: 2023-05-29T11:01:18.899Z (over 1 year ago)
- Language: JavaScript
- Size: 103 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nrsession
Fetch npm modules and jump into a repl
## install
```sh
$ [sudo] npm install -g nrsession
```## usage
```sh
$ nrsession [...modules]
```## example
Start a session with `batch` and `superagent` as a NPM dependency.
```sh
$ nrsession batch superagent
```After bootstrapping you will be put into a session where those modules
are available to be loaded.```js
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