test-repl
v0.2.0
Published
Modified node REPL for easy testing of a module.
Downloads
5
Readme
test-repl
REPL designed to facilitate testing of packages by disabling caching of required files and aligning the base directory with the project root.
Requiring a file from the test repl will reload it from disk preventing you from having to constantly restart node.
node_modules
Files in node_modules are cached in the same way as for normal calls to require. It turns out that there is a reason that node caches modules and re-importing every script in node_modules incurs a large performance hit.
Version 2 may allow you to configure this behavour.
Installation
$ npm install -g test-repl
Usage
$ test-repl
Use in the same way as running $ node
.
Command History
The history of commands is stored in a text file at ~/.node-test-repl-history
.