1.0.0 • Published 3 years ago

tinctured v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Tinctured

Tinctured is a simple helper to add colors to console log statements in nodejs and electron.

Installation

Use npm to install tinctured:

npm install tinctured

Usage

const { tinctured, options: { red, white, blue, green, underscore, bgMagenta, reverse, blink, bright } } = require('tinctured')


let message = 'Testing:'
message += ` ${tinctured("blue & big magenta", { blue, bgMagenta })}`
message += `, ${tinctured("red & underscored", { red, underscore })}`
message += `, ${tinctured("reverse", { reverse })}`
message += `, ${tinctured("just green", { green })}`
message += `, ${tinctured("green & bright", { green, bright })}`

console.log(message)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT