benji.monster/node_modules/cli-boxes
2020-01-03 21:48:09 +01:00
..
boxes.json upload site 2020-01-03 21:48:09 +01:00
index.js upload site 2020-01-03 21:48:09 +01:00
license upload site 2020-01-03 21:48:09 +01:00
package.json upload site 2020-01-03 21:48:09 +01:00
readme.md upload site 2020-01-03 21:48:09 +01:00

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

+----+
|    |
+----+
  • boxen - Create boxes in the terminal

License

MIT © Sindre Sorhus