easy-stdin

1.0.1 • Public • Published

easy-stdin

npm version

Want to read the whole of stdin easily?

var stdin = require("easy-stdin")
 
stdin(function(err, data) {
  if(err) {
    console.error("Oh noes!")
  } else {
    console.log("stdin: " + data);
  }
});

That is all.

Install

npm install easy-stdin

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i easy-stdin

      Weekly Downloads

      46

      Version

      1.0.1

      License

      MIT

      Last publish

      Collaborators

      • timruffles