Add note about bufferSize to README
This commit is contained in:
parent
8c78b18e58
commit
92dee428f1
1 changed files with 2 additions and 1 deletions
|
@ -480,7 +480,8 @@ _For `question*` and `prompt*` methods only_
|
||||||
*Default:* `1024`
|
*Default:* `1024`
|
||||||
|
|
||||||
When readlineSync reads from a console directly (without external program), use a size `bufferSize` buffer.
|
When readlineSync reads from a console directly (without external program), use a size `bufferSize` buffer.
|
||||||
Even if the input by user exceeds it, it's usually no problem, because the buffer is used repeatedly. But some platforms's (e.g. Windows) console might not accept input that exceeds it. And set an enough size.
|
Even if the input by user exceeds it, it's usually no problem, because the buffer is used repeatedly. But some platforms's (e.g. Windows) console might not accept input that exceeds it. And set an enough size.
|
||||||
|
Note that this might be limited by [version of Node.js](https://nodejs.org/api/buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding) and environment running your script (Big buffer size is usually not required).
|
||||||
|
|
||||||
### <a name="basic_options-print"></a>`print`
|
### <a name="basic_options-print"></a>`print`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue