chs-console-emulation
v0.1.6
Published
Emulate CodeHS console I/O functions for use in NodeJS environment.
Downloads
5
Readme
Emulates the CodeHS console functions for use within the NodeJS environment.
Installation
Using NPM
npm i --save chs-console-emulation
In Node.js:
require("chs-console-emulation");
var name = readLine("Enter your name: ");
var age = readInt("Enter your age: ");
var height = readFloat("Enter your height in feet: ");
var likesDogs = readBoolean("Do you like dogs? ");
print("Hi " + name);
println(", you were born in " + (2019 - age));
if (likesDogs) {
println("I see you like dogs.");
}