ayonious/console-table-printer

If the input in the form contains Chinese characters, the layout is wrong

Closed this issue · 1 comments

示例代码:
const { Table } = require('console-table-printer');
const p = new Table();
let MAP = {
'libVersion': '小程序SDK版本库',
'es6': 'ES6转ES5',
'enhance': '增强编译',
'nodeModules': '使用npm模块',
'minified': '上传代码自动压缩混淆'
};
for (let keyName in MAP) {
p.addRow({ '选项': MAP[keyName], '设置的值': resourceValue, '参考值': targetValue });
}
p.printTable();

输入结果:
image

i'm sorry. when i update , it is fixed