getchar

1.0.1 • Public • Published

getchar 💻

getchar is simple native library bringing C-style getchar() function to Node, allowing to read from standard input character by character, synchronously, without callbacks!

npm version npm license Dependency Status

NPM

Install

npm install --save getchar

Usage

const glib = require("getchar");
let c = glib.getchar(true); 
// typeof(c) === 'string'
// getchar(boolean) - default: false, if true skip newlines.
 
console.log(c);

Package Sidebar

Install

npm i getchar

Weekly Downloads

2

Version

1.0.1

License

Unlicense

Unpacked Size

20.3 kB

Total Files

9

Last publish

Collaborators

  • palaiologos