Boxes for use in the terminal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig init Mar 1, 2016
.gitattributes
.gitignore init Mar 1, 2016
.travis.yml init Mar 1, 2016
boxes.json init Mar 1, 2016
index.js init Mar 1, 2016
license init Mar 1, 2016
package.json 1.0.0 Mar 1, 2016
readme.md init Mar 1, 2016
test.js

readme.md

cli-boxes Build Status

Boxes for use in the terminal

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

Install

$ npm install --save cli-boxes

Usage

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

console.log(cliBoxes.single);
/*
{
    "topLeft": "┌",
    "topRight": "┐",
    "bottomRight": "┘",
    "bottomLeft": "└",
    "vertical": "│",
    "horizontal": "─"
}
*/

API

cliBoxes

single

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

double

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

round

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

single-double

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

double-single

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

classic

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

Related

  • boxen - Create boxes in the terminal

License

MIT © Sindre Sorhus