A very simple asynchronous stdin reader.
  • JavaScript 100%
Find a file
2019-03-12 22:09:16 -07:00
.eslintrc.json Initial commit 2019-03-12 22:09:16 -07:00
.gitignore Initial commit 2019-03-12 22:09:16 -07:00
index.js Initial commit 2019-03-12 22:09:16 -07:00
package-lock.json Initial commit 2019-03-12 22:09:16 -07:00
package.json Initial commit 2019-03-12 22:09:16 -07:00
README.md Initial commit 2019-03-12 22:09:16 -07:00

async-stdin-read

A very simple asynchronous stdin reader.

Installation

npm install -P async-stdin-read

Usage

const read_stdin = require( 'async-stdin-read' );

async function some_async_function() {
    const input = await read_stdin();
    console.log( "here is what we read from stdin:" );
    console.log( input );
}

License

The MIT License (MIT)

Thanks

This module was developed at Oportun, Inc.