https://github.com/jamesgeorge007/node-banner
Easily integrate ASCII flavored banners to your CLI tool
https://github.com/jamesgeorge007/node-banner
banner banner-generator command-line-tool hacktoberfest hacktoberfest2020 javascript javascript-library nodejs
Last synced: about 1 year ago
JSON representation
Easily integrate ASCII flavored banners to your CLI tool
- Host: GitHub
- URL: https://github.com/jamesgeorge007/node-banner
- Owner: jamesgeorge007
- License: gpl-3.0
- Created: 2019-06-07T02:24:28.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T00:44:52.000Z (over 3 years ago)
- Last Synced: 2025-03-29T18:36:30.224Z (about 1 year ago)
- Topics: banner, banner-generator, command-line-tool, hacktoberfest, hacktoberfest2020, javascript, javascript-library, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-banner
- Size: 151 KB
- Stars: 22
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/jamesgeorge007/node-banner)
Easily integrate ASCII flavoured banner to your CLI utility.
## Usage
```md
$ npm install --save node-banner
```
```js
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
```bash
$ npm test
```
## License
[GNU GPL V3](https://github.com/jamesgeorge007/node-banner/blob/master/LICENSE)