Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Latest commit

 

History

History
89 lines (58 loc) · 2.12 KB

README-Deprecated.md

File metadata and controls

89 lines (58 loc) · 2.12 KB

readlineSync

Deprecated Methods and Options

The readlineSync current version is fully compatible with older version.
The following methods and options are deprecated.

setPrint method

Use the print option.
For the Default Options, use:

readlineSync.setDefaultOptions({print: value});

instead of:

readlineSync.setPrint(value);

setPrompt method

Use the prompt option.
For the Default Options, use:

readlineSync.setDefaultOptions({prompt: value});

instead of:

readlineSync.setPrompt(value);

setEncoding method

Use the encoding option.
For the Default Options, use:

readlineSync.setDefaultOptions({encoding: value});

instead of:

readlineSync.setEncoding(value);

setMask method

Use the mask option.
For the Default Options, use:

readlineSync.setDefaultOptions({mask: value});

instead of:

readlineSync.setMask(value);

setBufferSize method

Use the bufferSize option.
For the Default Options, use:

readlineSync.setDefaultOptions({bufferSize: value});

instead of:

readlineSync.setBufferSize(value);

noEchoBack option

Use hideEchoBack option instead of it.

noTrim option

Use keepWhitespace option instead of it.