JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11857887
  • Score
    100M100P100Q286543F
  • License MIT

Easier stdin

Package Exports

  • get-stdin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-stdin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-stdin Build Status

Easier stdin

Install

$ npm install --save get-stdin

Usage

// example.js
var stdin = require('get-stdin');

stdin(function (data) {
    console.log(data);
    //=> unicorns
});
$ echo unicorns | node example.js
unicorns

API

stdin(callback)

Get stdin as a string.

stdin.buffer(callback)

Get stdin as a buffer.

License

MIT © Sindre Sorhus