0.1.6 • Published 5 years ago

chs-console-emulation v0.1.6

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

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.");
}
0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago