Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
55 lines (55 loc) · 1.53 KB
/
Copy pathpackage.json
File metadata and controls
55 lines (55 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"name": "@cto.af/string-width",
"version": "6.0.0",
"description": "Get width of a Unicode string in fixed-width display cells, accounting for combining characters, emojis, flags, Hangul, East Asian Width, default ignorables, and a few more.",
"main": "lib/index.js",
"type": "module",
"types": "types/index.d.ts",
"files": [
"lib",
"types"
],
"repository": {
"type": "git",
"url": "git+https://github.com/cto-af/string-width.git"
},
"scripts": {
"clean": "rm -rf coverage docs types lib/widths.js",
"docs": "typedoc",
"lint": "eslint .",
"trie": "node tools/genWidthTrie.js",
"test": "c8 mocha",
"types": "tsc",
"build": "npm run trie && npm run types && npm run lint && npm run test && npm run docs && npm pack --dry-run"
},
"keywords": [
"unicocde",
"string",
"width",
"string-width",
"stringwidth"
],
"author": "Joe Hildebrand <joe-github@cursive.net>",
"license": "MIT",
"dependencies": {
"@cto.af/unicode-trie-runtime": "3.2.11",
"ansi-regex": "~6.4.0",
"emoji-regex": "~11.0.0"
},
"devDependencies": {
"@cto.af/eslint-config": "^7.0.3",
"@cto.af/unicode-trie": "^3.2.11",
"@types/node": "^26.6.5",
"@typescript/native": "npm:typescript@^7.0.2",
"eslint": "^10.13.0",
"eslint-plugin-mocha": "^12.0.2",
"mocha": "^12.0.3",
"superc8": "^12.7.0",
"typedoc": "^0.28.20",
"typescript": "npm:@typescript/typescript6@^6.0.2"
},
"packageManager": "pnpm@12.15.0",
"engines": {
"node": ">= 22"
}
}