Browse Source

doc: document argument variant in the repl.md

`options` in the `repl.start([options])` can be a string.

Ref: https://github.com/nodejs/node/pull/10160

PR-URL: https://github.com/nodejs/node/pull/10221
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
v7.x
Vse Mozhet Byt 8 years ago
committed by Italo A. Casas
parent
commit
5250b3358e
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 9
      doc/api/repl.md

9
doc/api/repl.md

@ -418,6 +418,15 @@ added: v0.1.91
The `repl.start()` method creates and starts a `repl.REPLServer` instance.
If `options` is a string, then it specifies the input prompt:
```js
const repl = require('repl');
// a Unix style prompt
repl.start('$ ');
```
## The Node.js REPL
Node.js itself uses the `repl` module to provide its own interactive interface

Loading…
Cancel
Save