rl-stdin

1.0.4 • Public • Published

Readline Standard In (rl-stdin)

A simple module to read stdin data and resolve the result in a promise

sudo npm install -g rl-stdin

# OR

npm install --save rl-stdin


# Use as inline command like
node -p "require('rl-stdin').then((data) => {/*Do Something Fancy*/});" < myFile.json

#OR
echo {\"username\":\"louisbuchbinder\",\"password\":\"kittylitter\"} | node -p "require('rl-stdin').then((data) => {/*Do Something Fancy*/});"

# Use inside node script
var stdin = require('rl-stdin');
stdin.then((data) => {/*Do Something Fancy*/});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    1
    • latest

Version History

Package Sidebar

Install

npm i rl-stdin

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • louisbuchbinder