diff --git a/README.md b/README.md index 491e60a..681bc96 100644 --- a/README.md +++ b/README.md @@ -410,6 +410,7 @@ Set the encoding method of the input and output. ### `bufferSize` +_For `question*` and `prompt*` methods only_ *Type:* number *Default:* `1024` @@ -740,8 +741,8 @@ The following option has independent default value that is not affected by [Defa The following options work as shown in the [Basic Options](#basic_options) section. - - + +
hideEchoBackmaskdefaultInputcaseSensitivekeepWhitespace
encodingbufferSizeprinthistory
hideEchoBackmaskdefaultInputencodingbufferSize
printhistory
### `questionFloat` @@ -766,8 +767,8 @@ The following option has independent default value that is not affected by [Defa The following options work as shown in the [Basic Options](#basic_options) section. - - + +
hideEchoBackmaskdefaultInputcaseSensitivekeepWhitespace
encodingbufferSizeprinthistory
hideEchoBackmaskdefaultInputencodingbufferSize
printhistory
### `questionPath` @@ -828,8 +829,7 @@ The following options have independent default value that is not affected by [De The following options work as shown in the [Basic Options](#basic_options) section. - - +
maskdefaultInputcaseSensitiveencodingbufferSize
print
maskdefaultInputencodingbufferSizeprint
And the following additional options are available. @@ -1214,7 +1214,7 @@ if (readlineSync.keyInYN('Continue virus scan?') === false) { The following options work as shown in the [Basic Options](#basic_options) section. - +
encodingbufferSizeprint
encodingprint
And the following additional option is available. @@ -1300,7 +1300,7 @@ The following option has independent default value that is not affected by [Defa The following options work as shown in the [Basic Options](#basic_options) section. - +
caseSensitiveencodingbufferSizeprint
caseSensitiveencodingprint
And the following additional option is available. @@ -1366,7 +1366,7 @@ The following option has independent default value that is not affected by [Defa The following options work as shown in the [Basic Options](#basic_options) section. - +
maskencodingbufferSizeprint
maskencodingprint
And the following additional options are available. diff --git a/lib/readline-sync.js b/lib/readline-sync.js index 505875b..3d3a1b6 100644 --- a/lib/readline-sync.js +++ b/lib/readline-sync.js @@ -923,7 +923,7 @@ function _questionNum(query, options, parser) { // -------- forced limit: getValidValue, cd: false - // trueValue, falseValue don't work. + // trueValue, falseValue, caseSensitive, keepWhitespace don't work. })); return validValue; } @@ -1008,7 +1008,7 @@ exports.questionPath = function(query, options) { } return true; }, - // trueValue, falseValue don't work. + // trueValue, falseValue, caseSensitive don't work. phContent: function(param) { return param === 'error' ? error : param !== 'min' && param !== 'max' ? null :