peach a19a732be8 commit message | 2 gadi atpakaļ | |
---|---|---|
.. | ||
boxes.json | 2 gadi atpakaļ | |
index.d.ts | 2 gadi atpakaļ | |
index.js | 2 gadi atpakaļ | |
license | 2 gadi atpakaļ | |
package.json | 2 gadi atpakaļ | |
readme.md | 2 gadi atpakaļ |
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
+----+
| |
+----+