Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

module-repl

1.0.0 • Public • Published

module-repl

Import a module and start a REPL

Install

$ npm install --global module-repl

Usage

# Ctrl+C to Exit REPL as usual

# Load main file in a project
$ cd my-project
$ module-repl
Imorting `/tmp/my-project/index.js` as `myProject` ...
> myProject
'Hello World'

# Load file given path
$ cd my-project
$ module-repl ./lib/name-checker.js
Importing `/tmp/my-project/lib/wordy-length.js` as `wordyLength` ...
> wordyLength('Ben')
'3 letters'

License

MIT © Ben Evans

install

npm i module-repl

Downloadsweekly downloads

2

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability