read
read copied to clipboard
read(1) for node.
Reproduction: ``` const fs = require('fs') const readCb = require('read') async function read(opts) { return new Promise((resolve, reject) => { readCb(opts, (err, line) => { resolve([err, line]) }) }) }...
**Issue**: We detected vulnerable dependencies in your project by using the command “npm audit”: #### npm audit report cryptiles
The extra newline is redundant, because a new line character is what is entered in order to terminate input anyway.
Using `read` to prompt multiple times fails after the first line when: * input is non-interactive (e.g. file/pipe); and * use is asynchronous wrt "nesting" (replacing `setTimeout(f)` with `f()` seems...
On win7 with powershell and `replace: true` will show the secret once a backspace is pressed.
Using this code, I still see the text output. ``` read({ prompt: 'Email: ', default: 'Email' }, (err, email) => { read({ prompt: 'Password: ', default: 'Password', silent: true, replace:...
Hi, I noticed that there is a few `console.error` messages in the test suite. Writing to stderr duting tests is interpreted as a test failure by our automated test suite,...