没有合适的资源?快使用搜索试试~ 我知道了~
table:将数据格式化为字符串表
共85个文件
js:55个
md:13个
json:4个
需积分: 9 2 下载量 170 浏览量
2021-01-30
19:27:08
上传
评论
收藏 1.23MB ZIP 举报
温馨提示
表 产生一个表示文本表中数组数据的字符串。 产品特点 适用于包含字符的字符串。 适用于包含字符串。 可配置的边框字符。 每列可配置的内容对齐。 每列可配置的内容填充。 可配置的列宽。 文字换行。 安装 npm install table 用法 使用数组(单元)的数组(行)描述表数据。 import { table } from 'table' ; // Using commonjs? // const {table} = require('table'); let data , output ; data = [ [ '0A' , '0B' , '0C' ] , [ '1A' , '1B' , '1C' ] , [ '2A' , '2B' , '2C' ] ] ; /** * @typedef {string} table~cell */ /** * @typedef {table~cell[]} table~row */ /** * @typedef {Object} table~columns * @property {
资源推荐
资源详情
资源评论
收起资源包目录
table-master.zip (85个子文件)
table-master
.README
usage.md 3KB
README.md 2KB
streaming.gif 116KB
streaming-random.gif 910KB
usage
streaming.md 1KB
text_truncation.md 1023B
predefined_border_templates.md 2KB
padding_cell_content.md 948B
text_wrapping.md 2KB
column_width.md 748B
custom_border.md 913B
draw_horizontal_line.md 1KB
single_line_mode.md 2KB
cell_content_alignment.md 1KB
demo.png 208KB
.eslintrc 64B
.flowconfig 36B
.github
FUNDING.yml 29B
src
createStream.js 3KB
validateTableData.js 992B
makeStreamConfig.js 2KB
validateConfig.js 706B
drawRow.js 356B
wrapCell.js 1017B
calculateRowHeightIndex.js 926B
calculateCellWidthIndex.js 329B
makeConfig.js 2KB
alignString.js 2KB
table.js 3KB
mapDataUsingRowHeightIndex.js 902B
schemas
shared.json 3KB
streamConfig.json 506B
config.json 578B
drawBorder.js 2KB
truncateTableData.js 375B
wrapWord.js 738B
alignTableData.js 503B
drawTable.js 1KB
calculateCellHeight.js 583B
stringifyTableData.js 201B
padTableData.js 347B
index.js 190B
getBorderCharacters.js 2KB
wrapString.js 709B
calculateMaximumColumnWidthIndex.js 649B
.babelrc 329B
.npmignore 27B
.travis.yml 367B
LICENSE 1KB
.SANDBOX
test-streaming-random.js 599B
test-streaming.js 219B
test
createStream.js 1KB
validateTableData.js 2KB
configSamples.js 3KB
.eslintrc 86B
streamConfig.js 1KB
streamConfigSamples.js 3KB
config.js 1KB
calculateRowHeightIndex.js 2KB
calculateCellWidthIndex.js 815B
makeConfig.js 2KB
alignString.js 4KB
mapDataUsingRowHeightIndex.js 3KB
drawBorder.js 2KB
wrapWord.js 1KB
calculateCellHeight.js 1KB
README
usage
column_width.js 883B
streaming.js 2KB
draw_horizontal_line.js 1KB
text_wrapping.js 2KB
basic.js 652B
moon_mission.js 2KB
custom_border.js 1KB
predefined_border_templates.js 2KB
text_truncating.js 905B
single_line_mode.js 2KB
cell_content_alignment.js 1KB
expectTable.js 257B
padding_cell_content.js 979B
wrapString.js 2KB
calculateMaximumColumnWidthIndex.js 1KB
README.md 18KB
.editorconfig 147B
.gitignore 140B
package.json 2KB
共 85 条
- 1
资源评论
以网为生
- 粉丝: 28
- 资源: 4595
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功