Bakhtina Sofya b84cb877be 1st comm | 3 nedēļas atpakaļ | |
---|---|---|
.. | ||
boxes.json | 3 nedēļas atpakaļ | |
index.d.ts | 3 nedēļas atpakaļ | |
index.js | 3 nedēļas atpakaļ | |
license | 3 nedēļas atpakaļ | |
package.json | 3 nedēļas atpakaļ | |
readme.md | 3 nedēļas 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
+----+
| |
+----+