Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anseki/readline-sync
Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).
https://github.com/anseki/readline-sync
block command conversation interactive javascript keyboard password prompt question readline repl synchronous tty wait
Last synced: 4 days ago
JSON representation
Synchronous Readline for interactively running to have a conversation with the user via a console(TTY).
- Host: GitHub
- URL: https://github.com/anseki/readline-sync
- Owner: anseki
- License: mit
- Archived: true
- Created: 2013-08-29T10:57:13.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-11-03T03:50:16.000Z (about 2 years ago)
- Last Synced: 2024-10-30T04:44:04.426Z (11 days ago)
- Topics: block, command, conversation, interactive, javascript, keyboard, password, prompt, question, readline, repl, synchronous, tty, wait
- Language: JavaScript
- Homepage:
- Size: 271 KB
- Stars: 803
- Watchers: 9
- Forks: 64
- Open Issues: 0
-
Metadata Files:
- Readme: README-Deprecated.md
- License: LICENSE
Awesome Lists containing this project
README
# readlineSync
## Deprecated Methods and Options
The readlineSync current version is fully compatible with older version.
The following methods and options are deprecated.Use the [`print`](README.md#basic_options-print) option.
For the [Default Options](README.md#basic_options), use:```js
readlineSync.setDefaultOptions({print: value});
```instead of:
```js
readlineSync.setPrint(value);
```Use the [`prompt`](README.md#basic_options-prompt) option.
For the [Default Options](README.md#basic_options), use:```js
readlineSync.setDefaultOptions({prompt: value});
```instead of:
```js
readlineSync.setPrompt(value);
```Use the [`encoding`](README.md#basic_options-encoding) option.
For the [Default Options](README.md#basic_options), use:```js
readlineSync.setDefaultOptions({encoding: value});
```instead of:
```js
readlineSync.setEncoding(value);
```Use the [`mask`](README.md#basic_options-mask) option.
For the [Default Options](README.md#basic_options), use:```js
readlineSync.setDefaultOptions({mask: value});
```instead of:
```js
readlineSync.setMask(value);
```Use the [`bufferSize`](README.md#basic_options-buffersize) option.
For the [Default Options](README.md#basic_options), use:```js
readlineSync.setDefaultOptions({bufferSize: value});
```instead of:
```js
readlineSync.setBufferSize(value);
```Use [`hideEchoBack`](README.md#basic_options-hideechoback) option instead of it.
Use [`keepWhitespace`](README.md#basic_options-keepwhitespace) option instead of it.