chs-console-emulation

0.1.6 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i chs-console-emulation

    Weekly Downloads

    1

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    4.45 kB

    Total Files

    3

    Last publish

    Collaborators

    • blpiltin