npm.io
1.0.1 • Published 7 years ago

getchar

Licence
Unlicense
Version
1.0.1
Deps
0
Size
20 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

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);

Keywords