XinXiKuaiBaoYuan/vue-info-reporter/node_modules/string-width-cjs
lixinran f57e8494f4 Initial commit: 知识采集分析Agent项目
- Django后端API服务
- Vue前端界面
- 集成王璞智能分析API
- 任务管理和报告生成功能
- Element Plus UI组件
- 响应式布局设计
2025-10-14 15:47:56 +08:00
..
node_modules Initial commit: 知识采集分析Agent项目 2025-10-14 15:47:56 +08:00
index.d.ts Initial commit: 知识采集分析Agent项目 2025-10-14 15:47:56 +08:00
index.js Initial commit: 知识采集分析Agent项目 2025-10-14 15:47:56 +08:00
license Initial commit: 知识采集分析Agent项目 2025-10-14 15:47:56 +08:00
package.json Initial commit: 知识采集分析Agent项目 2025-10-14 15:47:56 +08:00
readme.md Initial commit: 知识采集分析Agent项目 2025-10-14 15:47:56 +08:00

readme.md

string-width

Get the visual width of a string - the number of columns required to display it

Some Unicode characters are fullwidth and use double the normal width. ANSI escape codes are stripped and doesn't affect the width.

Useful to be able to measure the actual width of command-line output.

Install

$ npm install string-width

Usage

const stringWidth = require('string-width');

stringWidth('a');
//=> 1

stringWidth('古');
//=> 2

stringWidth('\u001B[1m古\u001B[22m');
//=> 2

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.