# 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`](#basic_options-print) option. For the [Default Options](#basic_options), use: ```js readlineSync.setDefaultOptions({print: value}); ``` instead of: ```js readlineSync.setPrint(value); ``` ### `setPrompt` method Use the [`prompt`](#basic_options-prompt) option. For the [Default Options](#basic_options), use: ```js readlineSync.setDefaultOptions({prompt: value}); ``` instead of: ```js readlineSync.setPrompt(value); ``` ### `setEncoding` method Use the [`encoding`](#basic_options-encoding) option. For the [Default Options](#basic_options), use: ```js readlineSync.setDefaultOptions({encoding: value}); ``` instead of: ```js readlineSync.setEncoding(value); ``` ### `setMask` method Use the [`mask`](#basic_options-mask) option. For the [Default Options](#basic_options), use: ```js readlineSync.setDefaultOptions({mask: value}); ``` instead of: ```js readlineSync.setMask(value); ``` ### `setBufferSize` method Use the [`bufferSize`](#basic_options-buffersize) option. For the [Default Options](#basic_options), use: ```js readlineSync.setDefaultOptions({bufferSize: value}); ``` instead of: ```js readlineSync.setBufferSize(value); ``` ### `noEchoBack` option Use [`hideEchoBack`](#basic_options-hideechoback) option instead of it. ### `noTrim` option Use [`keepWhitespace`](#basic_options-keepwhitespace) option instead of it.