chrisdrakeford 9c87c1307d first commit | il y a 3 ans | |
---|---|---|
.. | ||
boxes.json | il y a 3 ans | |
index.d.ts | il y a 3 ans | |
index.js | il y a 3 ans | |
license | il y a 3 ans | |
package.json | il y a 3 ans | |
readme.md | il y a 3 ans |
Boxes for use in the terminal
The list of boxes is just a JSON file and can be used anywhere.
$ npm install cli-boxes
const cliBoxes = require('cli-boxes');
console.log(cliBoxes.single);
/*
{
topLeft: '┌',
topRight: '┐',
bottomRight: '┘',
bottomLeft: '└',
vertical: '│',
horizontal: '─'
}
*/
single
┌────┐
│ │
└────┘
double
╔════╗
║ ║
╚════╝
round
╭────╮
│ │
╰────╯
bold
┏━━━━┓
┃ ┃
┗━━━━┛
singleDouble
╓────╖
║ ║
╙────╜
doubleSingle
╒════╕
│ │
╘════╛
classic
+----+
| |
+----+