1.0.5 • Published 6 years ago

cli-chalk v1.0.5

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

cli-chalk

helper for cli and script console logs

installation

npm i -D cli-chalk

usage

const log = require("cli-chalk");
log.config.name = "my-cli";

log.success("updated something!");

log.error("this is not right :(");

log.warn("im warning you...");

log.info("for your information");

example-image

fluent logger

const { logger } = require("cli-chalk");

const data = {
    userId: 313
}

logger
    .error("i have data")
    .data("errorCode", -1000)
    .data("timestamp", new Date())
    .data("body", data)
    .write();

fluent-image

config

{
    name: "cli",
    nameColor: chalk.bgBlue,
    successColor: chalk.green,
    errorColor: chalk.red,
    warnColor: chalk.keyword('orange'),
    infoColor: chalk.blue
}
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago