Comparing version 1.0.2 to 1.0.3
@@ -12,6 +12,12 @@ | ||
if (typeof opts.default !== 'undefined' && | ||
typeof opts.default !== 'string' && | ||
typeof opts.default !== 'number') { | ||
throw new Error('default value must be string or number') | ||
} | ||
var input = opts.input || process.stdin | ||
var output = opts.output || process.stdout | ||
var m = new Mute({ replace: opts.replace }) | ||
m.pipe(output) | ||
m.pipe(output, {end: false}) | ||
output = m | ||
@@ -69,2 +75,3 @@ var def = opts.default || '' | ||
output.mute() | ||
output.end() | ||
} | ||
@@ -71,0 +78,0 @@ |
{ | ||
"name": "read", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "lib/read.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11406
9
265
3