Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "reloquent", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A simple Node.js module to query readline", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -16,3 +16,3 @@ # reloquent | ||
const rl = reloquent('How are you today?') | ||
const rl = reloquent('How are you today? ') | ||
rl.promise.then((answer) => { | ||
@@ -26,6 +26,6 @@ console.log(`You've answered: %s`, answer) // no timeout | ||
const rl = reloquent('How are you today?', 5000) // 5s timeout | ||
const rl = reloquent('How are you today? ', 5000) // 5s timeout | ||
rl.promise.catch((err) => { | ||
console.log(err) | ||
console.log(`Nevermind...`, answer) | ||
console.log('Nevermind...') | ||
}) | ||
@@ -32,0 +32,0 @@ ``` |
4068