The readlineSync current version is fully compatible with older version.
The following methods and options are deprecated.
Use the print
option.
For the Default Options, use:
readlineSync.setDefaultOptions({print: value});
instead of:
readlineSync.setPrint(value);
Use the prompt
option.
For the Default Options, use:
readlineSync.setDefaultOptions({prompt: value});
instead of:
readlineSync.setPrompt(value);
Use the encoding
option.
For the Default Options, use:
readlineSync.setDefaultOptions({encoding: value});
instead of:
readlineSync.setEncoding(value);
Use the mask
option.
For the Default Options, use:
readlineSync.setDefaultOptions({mask: value});
instead of:
readlineSync.setMask(value);
Use the bufferSize
option.
For the Default Options, use:
readlineSync.setDefaultOptions({bufferSize: value});
instead of:
readlineSync.setBufferSize(value);
Use hideEchoBack
option instead of it.
Use keepWhitespace
option instead of it.