Welcome header for Node.js CLI software.
npm install welcome-for-cli
yarn add welcome-for-cli
import welcome from 'welcome-for-cli';
// Use it.
welcome({ title: `Welcome CLI`, tagLine: `by csalam07` });
// OR with all the options set like this:
welcome({
title: `Welcome CLI`,
tagLine: `by csalam07`,
bgColor: `#FADC00`,
color: `#000000`,
bold: true,
clear: true,
version: `v1.0`,
});
Type: object
Default: {}
You can specify the options below.
Type: string
CLI title with background color highlight.
Type: string
CLI tag line in front of the title without highlight but dimmed.
Type: string
CLI description below the title.
Type: boolean
Default: true
Clear console.
Type: boolean
Default: true
Bold heading text.
Type: string
Default: #ffffff
Background color highlight for heading
.
Type: string
Default: true
Text color for heading
.
Type: string
Default: (empty string)
Print version text.
- MIT © cslam07