UNPKG

793 BJSONView Raw
1{
2 "name": "string-length",
3 "version": "3.1.0",
4 "description": "Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes",
5 "license": "MIT",
6 "repository": "sindresorhus/string-length",
7 "author": {
8 "name": "Sindre Sorhus",
9 "email": "sindresorhus@gmail.com",
10 "url": "sindresorhus.com"
11 },
12 "engines": {
13 "node": ">=8"
14 },
15 "scripts": {
16 "test": "xo && ava && tsd"
17 },
18 "files": [
19 "index.js",
20 "index.d.ts"
21 ],
22 "keywords": [
23 "unicode",
24 "string",
25 "length",
26 "size",
27 "count",
28 "astral",
29 "symbol",
30 "surrogates",
31 "codepoints",
32 "ansi",
33 "escape",
34 "codes"
35 ],
36 "dependencies": {
37 "astral-regex": "^1.0.0",
38 "strip-ansi": "^5.2.0"
39 },
40 "devDependencies": {
41 "ava": "^1.4.1",
42 "tsd": "^0.7.1",
43 "xo": "^0.24.0"
44 }
45}