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.
fork icon61
star icon1
watch icon2

+ 15 other calls in file