Skip to content

labs-js/cli-logo

Repository files navigation

Build Status codecov npm Turbo Commit bitHound Code Climate

cli-logo

A standar way to create logos for CLIs using ASCII art and the package version.

Install

npm install --save cli-logo

Example:

var logoCli = require('cli-logo'),
    version = 'v' + require('./package.json').version,
    description = require('./package.json').description,
    logoConfig = {
        "name": "CoolName",
        "description": description,
        "version": version
    };

logoCli.print(logoConfig);

The result:

As optional parameters on the logoConfig you can use also: "type":"Standard" & "color":"green"

type is the font type supported by figlet

color is the color name supported by colors

This package was genareted with envinator -> Fast develoment 😎🙌

Turbo Commit: On