We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.readFileSync(0)
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]) }) }) } ;(async () => { const [err, password] = await read({ prompt: 'Password: ', silent: true }) console.log(password) console.log(fs.readFileSync(0).toString()) })()
Run:
node --unhandled-rejections=strict main.js
Outcome:
fs.js:614 handleErrorFromBinding(ctx); ^ Error: EAGAIN: resource temporarily unavailable, read at Object.readSync (fs.js:614:3) at tryReadSync (fs.js:383:20) at Object.readFileSync (fs.js:420:19) at /home/ciro/test/main.js:70:18 at processTicksAndRejections (internal/process/task_queues.js:95:5) { errno: -11, syscall: 'read', code: 'EAGAIN' }
read 1.0.7, node.js v14.17.0., Ubuntu 21.10.
Related: https://stackoverflow.com/questions/4708787/get-password-from-input-using-node-js/71868483#71868483
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction:
Run:
Outcome:
read 1.0.7, node.js v14.17.0., Ubuntu 21.10.
Related: https://stackoverflow.com/questions/4708787/get-password-from-input-using-node-js/71868483#71868483
The text was updated successfully, but these errors were encountered: