New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

read-cli-input

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-cli-input - npm Package Compare versions

Comparing version

to
0.0.1-security

31

package.json
{
"name": "read-cli-input",
"version": "0.0.0",
"description": "Read user input from CLI for specified amount of lines.",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"keywords": [
"io",
"read",
"cli",
"prompt"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"url": "git@github.com:azer/read-cli-input.git",
"type": "git"
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
},
"author": "azer",
"license": "BSD",
"dependencies": {
"on-key-press": "0.0.0"
}
}
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
},
"homepage": "https://github.com/npm/security-holder#readme"
}

@@ -1,35 +0,9 @@

## read-cli-input
# Security holding package
Read user input from CLI for specified amount of lines.
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.
## Install
```bash
$ npm install read-cli-input
```
## Usage
```js
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;
```js
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);
```
You may adopt this package by contacting support@npmjs.com and
requesting the name.