1.1.1 • Published 1 year ago
escprint-ts v1.1.1
escprint-ts
Installation
npm install escprint-ts --save-dev
Usage
import esc from "escprint-ts";
const {prt} = esc;
// print "Hello World!" red and underlined
prt("<red,u>Hello World!");
import esc from "escprint-ts";
const {read, readpswd} = esc;
const username = await read("<blue>Username: ", {
outStyle: ['dim','italic']
});
const password = await readpswd("<red>Password: ", {
outChar: "*",
outStyle: "dim"
})