string-width
Version:
Get the visual width of a string - the number of columns required to display it
60 lines (59 loc) • 1.06 kB
JSON
{
"name": "string-width",
"version": "9.0.0",
"description": "Get the visual width of a string - the number of columns required to display it",
"license": "MIT",
"repository": "sindresorhus/string-width",
"funding": "https://github.com/sponsors/sindresorhus",
"author": "Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)",
"type": "module",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=22"
},
"scripts": {
"test": "xo && node --test"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"string",
"character",
"unicode",
"width",
"visual",
"column",
"columns",
"fullwidth",
"full-width",
"wcwidth",
"wcswidth",
"full",
"ansi",
"escape",
"codes",
"cli",
"command-line",
"terminal",
"console",
"cjk",
"chinese",
"japanese",
"korean",
"fixed-width",
"east-asian-width"
],
"dependencies": {
"get-east-asian-width": "^1.7.0",
"strip-ansi": "^7.2.0"
},
"devDependencies": {
"xo": "^5.0.1"
}
}