node-banner
v1.4.0
Published
Easily integrate ASCII flavoured banners to your CLI tool
Downloads
3,688
Maintainers
Readme
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');
})();
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