All Projects → vitaly-t → manakin

vitaly-t / manakin

Licence: other
🐦 Prime colors for your Node.js console — quick & safe.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to manakin

Console Logging
Better, prettier commandline logging for Python--with colors! 👻
Stars: ✭ 111 (+282.76%)
Mutual labels:  console, color
paper-terminal
Print Markdown to a paper in your terminal
Stars: ✭ 33 (+13.79%)
Mutual labels:  console, color
Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (+296.55%)
Mutual labels:  console, color
Rang
A Minimal, Header only Modern c++ library for terminal goodies 💄✨
Stars: ✭ 1,080 (+3624.14%)
Mutual labels:  console, color
barecolor
A tiny JavaScript utility for printing colorful console messages.
Stars: ✭ 20 (-31.03%)
Mutual labels:  console, color
Tiza
Console styling for browsers
Stars: ✭ 74 (+155.17%)
Mutual labels:  console, color
strip-ansi-stream
Strip ANSI escape codes
Stars: ✭ 32 (+10.34%)
Mutual labels:  console, color
Gradient String
🌈 Beautiful color gradients in terminal output
Stars: ✭ 476 (+1541.38%)
Mutual labels:  console, color
leeks.js
Simple ANSI styling for your terminal
Stars: ✭ 12 (-58.62%)
Mutual labels:  console, color
go-color
A lightweight, simple and cross-platform package to colorize text in terminals
Stars: ✭ 65 (+124.14%)
Mutual labels:  console, color
Crossline
A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
Stars: ✭ 53 (+82.76%)
Mutual labels:  console, color
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (-17.24%)
Mutual labels:  console, color
Crossterm
Cross platform terminal library rust
Stars: ✭ 1,023 (+3427.59%)
Mutual labels:  console, color
Chalk Animation
🎬 Colorful animations in terminal output
Stars: ✭ 1,489 (+5034.48%)
Mutual labels:  console, color
Closestx11color
Find the closest xterm-256 colors (between 0 and 255) to an arbitrary HTML hexa color (e.g. #ABCDEF)
Stars: ✭ 13 (-55.17%)
Mutual labels:  console, color
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: ✭ 225 (+675.86%)
Mutual labels:  console, color
Chalk
🖍 Terminal string styling done right
Stars: ✭ 17,566 (+60472.41%)
Mutual labels:  console, color
Mordant
Full-featured text styling for Kotlin command-line applications
Stars: ✭ 382 (+1217.24%)
Mutual labels:  console, color
colored-console
🌈 Add some color to your console >_
Stars: ✭ 74 (+155.17%)
Mutual labels:  console, color
yachalk
🖍️ Terminal string styling done right
Stars: ✭ 131 (+351.72%)
Mutual labels:  console, color

manakin

Build Status Coverage Status Downloads Count Join the chat at https://gitter.im/vitaly-t/manakin

Wire-tailed manakin

The quickest and safest way to set default colorful output for your Node.js console, without messing with the colors, and to continue using the rich syntax and the output format supported by Node.js console methods:

 • with a list of parameters: console.log(obj1 [, obj2, ..., objN]);
 • with message formatting: console.log(msg [, subst1, ..., substN]);

Can be used either locally or globally (by overriding the console object), with automatic colors applied according to which method is used - see the screenshot below.


minimum code   no dependencies


This library provides consistent output format for console methods after applying the colors, in contrast to generic color libraries that only apply colors to text.

Console output colors

Installing

$ npm install manakin --save

Usage

Using colors globally

require('manakin').global; // sets colors globally, for the `console` object

console.log(val1, val2, ...); // white/default text output
console.warn(val1, val2, ...); // yellow text output
console.error(val1, val2, ...); // red text output
console.info(val1, val2, ...); // cyan text output
console.success(val1, val2, ...); // green text output (custom method)
console.ok(val1, val2, ...); // green text output (custom method)

Using colors locally

var con = require('manakin').local; // use colors locally

con.log(val1, val2, ...); // white/default text output
con.warn(val1, val2, ...); // yellow text output
con.error(val1, val2, ...); // red text output
con.info(val1, val2, ...); // cyan text output
con.success(val1, val2, ...); // green text output (custom method)
con.ok(val1, val2, ...); // green text output (custom method)

Customization Features

You can easily do the following:

For more details and examples, see the full API and examples.

License

Copyright © 2018 Vitaly Tomilov; Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].