easy-stdin

Want to read the whole of stdin easily?

Usage no npm install needed!

<script type="module">
  import easyStdin from 'https://cdn.skypack.dev/easy-stdin';
</script>

README

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