escprint-ts
v1.1.1
Published
a lightweight cli styler written in typescript
Downloads
374
Readme
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"
})