
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
read-cli-input
Advanced tools
Read user input from CLI for specified amount of lines.
$ npm install read-cli-input
var read = require('read-cli-input')
console.log("What are your most favorite 3 food ?");
read(3, function (input) {
console.log('Answer was: ', input.join(', '));
// => Answer was Falafel, ramen, babi guling
})
By default, it reads from process.stdin
. You can specify custom IO if you pass
three arguments;
read(process.stdin, 3, console.log);
If you'll read just one line from process.stdin, you can just pass a callback:
read(console.log);
FAQs
This package name is not currently in use, but was formerly occupied by a popular package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.
The npm package read-cli-input receives a total of 0 weekly downloads. As such, read-cli-input popularity was classified as not popular.
We found that read-cli-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.