REPAL
REPL that requires all. Start a interactive node instance with all local packages loaded. Useful when testing installed npm packages. Features:
- Load all npm packages within
node_modules/
in the current work directory. - CamelCased package names, for instance: the package named
shopify-liquid
will be loaded asshopifyLiquid
.
Install
npm i -g repal
Usage
repal # start a REPL node instance repal --help # print help
Demo
Say you have a project with node_modules
:
.
└── node_modules
└── greet.js # containing: module.exports = "Welcome to REPAL!"
Via repal
you can use foo.js
directly in REPL:
$ repal
> foo
'Welcome to REPAL!'
>