# nightwatch-repl

> A REPL for NightwatchJS

Latest version **0.2.0** (published 2018-03-01) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install nightwatch-repl
pnpm add nightwatch-repl
yarn add nightwatch-repl
bun add nightwatch-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 | 2018-03-01 |
| First published | 2017-11-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Yohann |
| Maintainers | iamyohann |
| Keywords | Nightwatch, Javascript, NightwatchJS, Development |

## Links

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

## Dependencies (2)

- [figlet](https://npm.io/package/figlet.md) ^1.2.0
- [readline](https://npm.io/package/readline.md) ^1.3.0

## Recent versions

- 0.2.0 (latest) — 2018-03-01
- 0.1.0 — 2017-11-30
- 0.0.1 — 2017-11-22

## README

# Nightwatch REPL

A simple REPL for nightwatch.

## Install

```
npm install nightwatch-repl
```

## Setup
Note: If you use nightwatch.json configuration, you must create a new file called
`nightwatch.conf.js`

```
// nightwatch.conf.js

var repl = require('nightwatch-repl');

module.exports = (function (settings) {
    repl.init(settings);
    ...
    ...
    return settings;
})(require('./nightwatch.json'));
```

## Usage Example

```
module.exports = {
  'demo test google' : function (browser) {
    browser
      .url('http://google.com')
      .waitForElementPresent('body', 1000);

    // show repl in the console
    browser.repl();
  },

  'part two' : function(client) {
    ....
  }
};
```

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