Skip to content

harrysarson/test-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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.

screenshot

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.

About

▶ Node REPL for easy testing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published