# test-repl

> Modified node REPL for easy testing of a module.

Latest version **0.2.0** (published 2017-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install test-repl
pnpm add test-repl
yarn add test-repl
bun add test-repl
```

Provides the command `test-repl`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-09-05 |
| First published | 2017-07-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Harry Sarson |
| Maintainers | harrysarson |

## Links

- npm: https://www.npmjs.com/package/test-repl
- Repository: https://github.com/harrysarson/test-repl
- Homepage: https://github.com/harrysarson/test-repl#readme
- Issues: https://github.com/harrysarson/test-repl/issues
- npm.io page: https://npm.io/package/test-repl

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^2.0.1
- [find-up](https://npm.io/package/find-up.md) ^2.1.0
- [resolve](https://npm.io/package/resolve.md) ^1.4.0
- [repl.history](https://npm.io/package/repl.history.md) ^0.1.4

## Recent versions

- 0.2.0 (latest) — 2017-09-05
- 0.1.0 — 2017-09-03
- 0.0.3 — 2017-07-12
- 0.0.2 — 2017-07-12
- 0.0.1 — 2017-07-11

## README

[![Build Status](https://travis-ci.org/HarrySarson/test-repl.svg?branch=master)](https://travis-ci.org/HarrySarson/test-repl)

# 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](resources/screenshot.png)

### 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

```shell
$ npm install -g  test-repl
```

# Usage

```shell
$ 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`.

---
_Source: https://npm.io/package/test-repl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
