Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

native-console

samuelnovaes12ISC1.0.3

Print text on screen and read string from keyboard

cin, cout, scanf, printf, keyboard, input, output, console, write, writeline, readline, read

readme

How to install

$ npm install native-console

How to use

//To import module
var c = require("native-console");

//To write
c.write("Hello World!");

//To read from keyboard
var input = c.read();

Example

var c = require("native-console");
c.write("Write something: ");
var text = c.read();
c.write("You wrote: "+text);