0.1.4 • Published 4 years ago

inputline v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Inputline

A easy console input library

Installing

  • Type npm i -s inputline into your terminal/console.

Examples

Import

Import inputline after installing it.

const inputline = require("inputline");

Await input from terminal

Note that this is async/await and you can't use it in top-level currently in node js.

let input = await inputline.get();

Get every input from terminal

Use a callback to get all inputs from console without needing too block the thread.

inputline.getAll((input) => {
  // Log it
  console.log(`New input: ${input}`);
});
0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago