npm.io
1.4.0 • Published 6 years ago

node-banner

Licence
GNU GPL V3
Version
1.4.0
Deps
2
Size
39 kB
Vulns
0
Weekly
0
Stars
22

Build Status

node-banner

Easily integrate ASCII flavoured banner to your CLI utility.

Usage

$ npm install --save node-banner
const showBanner = require('node-banner');

(async () => {
	await showBanner('The Title', 'This is a suitable tagline');
})();

Demo

API

showBanner(title, [tagLine], [titleColor], [tagLineColor])
  • title: Name of the utility.
  • tagLine: A suitable tagline.
  • titleColor: Override the default title-color that defaults to red.
  • tagLineColor: Override the default tagline-color that defaults to yellow.

Testing

 $ npm test

License

GNU GPL V3

Keywords