async-stdin-read

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i async-stdin-read

Weekly Downloads

20

Version

1.0.0

License

MIT

Unpacked Size

2.74 kB

Total Files

4

Last publish

Collaborators

  • andyburke