Socket
Socket
Sign inDemoInstall

cli-banner

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-banner

Create boxes around content


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

CLI Banner

Create boxes around strings - great for console printing

yarn add -D cli-banner
# or
npm install --save-dev cli-banner

Module Usage

const banner = require('cli-banner');
const options = {}

console.log(banner('hello world', options)));

// ┌──────────────────────────────────────────────────────────────────────────────┐
// │                                                                              │
// │                                 hello world                                  │
// │                                                                              │
// └──────────────────────────────────────────────────────────────────────────────┘

CLI Usage

banner "hello world"

# ┌──────────────────────────────────────────────────────────────────────────────┐
# │                                                                              │
# │                                 hello world                                  │
# │                                                                              │
# └──────────────────────────────────────────────────────────────────────────────┘

Options

Property NameCLI NameDescriptionChoicesDefault
widthwidthWidth of the banner (including borders)any Number, "auto"80
colorcolorColor of the test"black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray", "redBright", "greenBright", "yellowBright", "blueBright", "magentaBright", "cyanBright", "whiteBright","white"
borderColorborder-colorColor of the border"black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray", "redBright", "greenBright", "yellowBright", "blueBright", "magentaBright", "cyanBright", "whiteBright","white"
paddingLengthMinimum amount of spaces on either side of the string3

Docs

  • Dependencies - overview of each package.json dependency

Keywords

FAQs

Package last updated on 23 Dec 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc