【文件属性】:
文件名称:boxen:在终端中创建框
文件大小:26KB
文件格式:ZIP
更新时间:2021-05-01 10:45:58
JavaScript
Boxen
在终端中创建框
安装
$ npm install boxen
用法
const boxen = require ( 'boxen' ) ;
console . log ( boxen ( 'unicorn' , { padding : 1 } ) ) ;
/*
┌─────────────┐
│ │
│ unicorn │
│ │
└─────────────┘
*/
console . log ( boxen ( 'unicorn' , { padding : 1 , margin : 1 , borderStyle : 'double' } ) ) ;
/*
╔═════════════╗
║ ║
║ unicorn ║
║ ║
╚
【文件预览】:
boxen-main
----.gitignore(35B)
----example.js(1KB)
----.github()
--------security.md(179B)
--------workflows()
--------funding.yml(111B)
----screenshot.png(20KB)
----.gitattributes(19B)
----package.json(908B)
----index.test-d.ts(1KB)
----readme.md(4KB)
----index.js(6KB)
----index.d.ts(3KB)
----test.js(17KB)
----.editorconfig(175B)
----license(1KB)
----.npmrc(19B)