Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

Easily integrate ASCII flavored banners to your CLI tool

Awesome Lists containing this project

README

        


node-banner

[![Build Status](https://travis-ci.com/jamesgeorge007/node-banner.svg?branch=master)](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');
})();

```

![Demo](https://i.imgur.com/btVf53N.png)

## 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)