forked from goliasse/opencbs-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 2.08 KB
/
package.json
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": "string-length",
"version": "0.1.2",
"description": "Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/string-length"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha",
"browser": "browserify -s $npm_package_name -o browser.js ."
},
"files": [
"index.js"
],
"keywords": [
"unicode",
"string",
"str",
"length",
"astral",
"symbol",
"surrogates",
"codepoints",
"ansi",
"escape",
"codes"
],
"dependencies": {
"strip-ansi": "^0.2.1"
},
"devDependencies": {
"mocha": "*",
"browserify": "^3.0.0"
},
"readme": "# string-length [![Build Status](https://travis-ci.org/sindresorhus/string-length.svg?branch=master)](https://travis-ci.org/sindresorhus/string-length)\n\n> Get the real length of a string - by correctly counting astral symbols and ignoring [ansi escape codes](https://github.com/sindresorhus/strip-ansi)\n\n`String#length` errornously counts [astral symbols](http://www.tlg.uci.edu/~opoudjis/unicode/unicode_astral.html) as two characters.\n\n\n## Install\n\n```sh\n$ npm install --save string-length\n```\n\n```sh\n$ bower install --save string-length\n```\n\n```sh\n$ component install sindresorhus/string-length\n```\n\n\n## Usage\n\n```js\n'𐌢'.length;\n//=> 2\n\nstringLength('𐌢');\n//=> 1\n\nstringLength('\\x1b[1municorn\\x1b[22m');\n//=> 7\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/string-length/issues"
},
"homepage": "https://github.com/sindresorhus/string-length",
"_id": "string-length@0.1.2",
"_shasum": "ab04bb33867ee74beed7fb89bb7f089d392780f2",
"_from": "string-length@^0.1.2",
"_resolved": "https://registry.npmjs.org/string-length/-/string-length-0.1.2.tgz"
}