1.0.0 • Published 6 years ago
@maxkreja/io v1.0.0
I/O
A simple I/O utility package.
Functions
const io = require("@maxkreja/io");
io.write("Hello!"); // writes a line without newline
io.writeLine(" Still the same line"); // writes a line and appends newline
// reads a line from the console
io.readLine((val) => {
io.writeLine(`You entered: ${val}`);
}, "Enter something: ");
1.0.0
6 years ago