bs-readline

1.0.4 • Public • Published

bs-readline

A small package for reading from node.

Installation

npm install --save bs-readline

or

npm i -S bs-readline

Then add bs-readline to bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dependencies": ["bs-readline"]
}

Examples

Read a line:

Readline.readline((in) => {
    Js.log(in);
});

Close(release the streams):

Readline.close();

Read a line and then close:

Readline.readline((in) => {
    Js.log(in);
    Readline.close();
});

Notes

When using bs-readline in your project, node will not exit until you have called Readline.close()

Package Sidebar

Install

npm i bs-readline

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

4.4 kB

Total Files

8

Last publish

Collaborators

  • kfish610