How to use the setDefaultOptions function from readline-sync
Find comprehensive JavaScript readline-sync.setDefaultOptions code examples handpicked from public code repositorys.
216 217 218 219 220 221 222 223 224 225
``` ### <a name="basic_methods-setdefaultoptions"></a>`setDefaultOptions` ```js currentDefaultOptions = readlineSync.setDefaultOptions([newDefaultOptions]) ``` Change the [Default Options](#basic_options) to the values of properties of `newDefaultOptions` Object. All it takes is to specify options that you want change, because unspecified options are not updated.
61
1
2
+ 15 other calls in file
readline-sync.question is the most popular function in readline-sync (3769 examples)