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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i module-repl

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bencevans