您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Christian Ziermann b8da0c7023 Initial commit 4 年前
..
boxes.json Initial commit 4 年前
index.d.ts Initial commit 4 年前
index.js Initial commit 4 年前
license Initial commit 4 年前
package.json Initial commit 4 年前
readme.md Initial commit 4 年前

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 anywhere.

Install

$ npm install cli-boxes

Usage

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

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

API

cliBoxes

single

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

double

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

round

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

bold

┏━━━━┓
┃    ┃
┗━━━━┛

singleDouble

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

doubleSingle

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

classic

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

License

MIT © Sindre Sorhus