Socket
Socket
Sign inDemoInstall

@banshi/text-art

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @banshi/text-art

Text formating tool for command prompt


Version published
Maintainers
1
Created

Readme

Source

color-art

A simple cli output tool for node js. Command line colored text, word art, simple progress bar.

color-art

Demo

Demo

Project goal

Target to build a lightwaight commandline module for colored commadline text output.

install

npm i --save-dev @banshi/text-art

Use

import {
    progressBar, replaceLastLine, color, CharacterArt
} from 'color-art';

console.log(color.italic("testing"))
console.log(color.strikethrough("strikeword"));
console.log(color.underline("underline"));
console.log(color.bold("bold"));
console.log(color.italic("italic"));
console.log(color.bold(color.italic("bold italic")));
console.log(color.inverse('background'));
console.log(color.underline(color.blue("background testing")));
replaceLastLine("Replaced by you and your friend");
replaceLastLine("Replaced by me");

console.log(color.green("\nI am a successfull message"));


let chAr = new CharacterArt({ "color": color.green });

chAr.charPattern("CLI ART").render();

List of Format method

reset bold dim italic underline overline inverse reverse hidden strikethrough

List of Colors method

black red green yellow blue magenta cyan white blackBright gray // Alias of blackBright redBright greenBright yellowBright blueBright magentaBright cyanBright whiteBright bgBlack bgRed bgGreen bgYellow bgBlue bgMagenta bgCyan bgWhite bgBlackBright bgGray // Alias of bgBlackBright bgRedBright bgGreenBright bgYellowBright bgBlueBright bgMagentaBright bgCyanBright bgWhiteBright

Art Matrix

import { matrix } from 'color-art';

let opt = {
    "stringLenth": 55,
    "spaceb2nletter": 5,
    "interval": 70,
    "stopAt": 500
}

matrix(opt);

Command line

Install global for command line tool

npm i -g color-art
cli-art textart CLI

// with color option

cli-art textart CLI -c red

Keywords

FAQs

Last updated on 04 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc