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*/});

/rl-stdin/

    Package Sidebar

    Install

    npm i rl-stdin

    Weekly Downloads

    2

    Version

    1.0.4

    License

    ISC

    Last publish

    Collaborators

    • louisbuchbinder