Bucklescript bindings for Chalk. The API is not fully supported yet, contributions welcome.
let log = Js.log;
let blueString = Chalk.blue("This string will be blue");
log(blueString);
let log = Js.log;
let (<<) = Chalk.compose;
let (>>) = Chalk.pipe;
let composedStyle = Chalk.bold << Chalk.bgRed << Chalk.underline;
log(composedStyle("This string will be bold, underlined with a red background"));
let error = Chalk.red << Chalk.bold << Chalk.underline;
log(error("This is my error"));
- ES2015 tagged template literal
- rbg
- hex
- keyword
- chalk enabled
- chalk level
- chalk supportsColor