test-repl

0.2.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i test-repl

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • harrysarson