yaclc

1.1.0 • Public • Published

Yaclc

Yet another command line colorizer

A no-nonsense, no-dependancy, simple ANSI escape code injector function to make colorizing your command line outputs easy.

Installation

npm install yaclc

Usage

Check out the full API, or run the example script to see what your terminal supports:

node demo.js

Here's a few ideas of what you can do:

const { f } = require("yaclc");

console.log("Print "+f("In color", { color:"red" }));
console.log("Print "+f("hex color", { color:"#ff2219" }));
console.log("Print "+f("bold and underlined", { bold:true, underlined:true }));

Future Plans

[ ] Support nested formatting that doesn't totally override

Readme

Keywords

none

Package Sidebar

Install

npm i yaclc

Weekly Downloads

48

Version

1.1.0

License

MIT

Unpacked Size

13.2 kB

Total Files

12

Last publish

Collaborators

  • jonathanvanschenck