1.0.1 • Published 6 years ago

simple-readline v1.0.1

Weekly downloads
5
License
MIT
Repository
gitlab
Last release
6 years ago

csimple-readline

A simple module to use readline in node

Example

Basic Usage

await readline() // returns a string

Echo input

const readline = require("simple-readline");

(async() => {
  while(true) {
    console.log(await readline());
  }
})();

If two readlines are called at the same time, the one called first will be returned first