cli-boxes

WebJar for cli-boxes

License

License

MIT
Categories

Categories

CLI User Interface
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

cli-boxes
Last Version

Last Version

2.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

cli-boxes
WebJar for cli-boxes
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/cli-boxes

Download cli-boxes

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/cli-boxes/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>cli-boxes</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/cli-boxes/
implementation 'org.webjars.npm:cli-boxes:2.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/cli-boxes/
implementation ("org.webjars.npm:cli-boxes:2.2.1")
'org.webjars.npm:cli-boxes:jar:2.2.1'
<dependency org="org.webjars.npm" name="cli-boxes" rev="2.2.1">
  <artifact name="cli-boxes" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='cli-boxes', version='2.2.1')
)
libraryDependencies += "org.webjars.npm" % "cli-boxes" % "2.2.1"
[org.webjars.npm/cli-boxes "2.2.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

cli-boxes

Boxes for use in the terminal

The list of boxes is just a JSON file and can be used anywhere.

Install

$ npm install cli-boxes

Usage

const cliBoxes = require('cli-boxes');

console.log(cliBoxes.single);
/*
{
	topLeft: '┌',
	top: '─',
	topRight: '┐',
	right: '│',
	bottomRight: '┘',
	bottom: '─',
	bottomLeft: '└',
	left: '│'
}
*/

API

cliBoxes

single

┌────┐
│    │
└────┘

double

╔════╗
║    ║
╚════╝

round

╭────╮
│    │
╰────╯

bold

┏━━━━┓
┃    ┃
┗━━━━┛

singleDouble

╓────╖
║    ║
╙────╜

doubleSingle

╒════╕
│    │
╘════╛

classic

+----+
|    |
+----+

arrow

↘↓↓↓↓↙
→    ←
↗↑↑↑↑↖

Related

  • boxen - Create boxes in the terminal

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.2.1
2.2.0
1.0.0