fancy-terminal
v1.0.1
Published
zero dependency Node.js terminal output colorizer
Downloads
868
Readme
🌈 fancy-terminal
zero dependency Node.js terminal output colorizer.
installation
npm i fancy-terminal
or
yarn add fancy-terminal
usage
const ft = require('fancy-terminal');
// color name for font colors
console.log('An error occured: ' + ft.red('an unfortunate error'));
// color name with Bg suffix for background colors
console.log(ft.greenBg('operation successfull');
check yarn example
for full color displays.
api
- font color list: [black, red, green, yellow, blue, magenta, cyan, white]
- background color list: all of the font colors suffixed with
Bg
license
Erdem Bircan (c) 2019-present