Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix #2: Upgrade mute-stream to allow replacement characters

  • Loading branch information...
commit 0906aa4f652c8ee7920f45a2217373b47ff1818d 1 parent aa40bd9
@isaacs authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  README.md
  2. +1 −1  lib/read.js
  3. +1 −1  package.json
View
1  README.md
@@ -22,6 +22,7 @@ Every option is optional.
* `prompt` What to write to stdout before reading input.
* `silent` Don't echo the output as the user types it.
+* `replace` Replace silenced characters with the supplied character value.
* `timeout` Number of ms to wait for user input before giving up.
* `default` The default value if the user enters nothing.
* `edit` Allow the user to edit the default value.
View
2  lib/read.js
@@ -11,7 +11,7 @@ function read (opts, cb) {
var input = opts.input || process.stdin
var output = opts.output || process.stdout
- var m = new Mute()
+ var m = new Mute({ replace: opts.replace })
m.pipe(output)
output = m
var def = opts.default || ''
View
2  package.json
@@ -3,7 +3,7 @@
"version": "1.0.1",
"main": "lib/read.js",
"dependencies": {
- "mute-stream": "0"
+ "mute-stream": "~0.0.2"
},
"devDependencies": {
"tap": "*"
Please sign in to comment.
Something went wrong with that request. Please try again.