{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["unicode","string","str","length","astral","symbol","surrogates","codepoints","ansi","escape","codes"],"dist-tags":{"latest":"1.0.1"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes","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```\n$ npm install --save string-length\n```\n\n\n## Usage\n\n```js\n'🐴'.length;\n//=> 2\n\nstringLength('🐴');\n//=> 1\n\nstringLength('\\u001b[1municorn\\u001b[22m');\n//=> 7\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","repository":{"type":"git","url":"https://github.com/sindresorhus/string-length"},"users":{"rocket0191":true},"bugs":{"url":"https://github.com/sindresorhus/string-length/issues"},"license":"MIT","versions":{"0.1.0":{"name":"string-length","version":"0.1.0","description":"Get the real length of a string by correctly counting astral symbols","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"],"devDependencies":{"mocha":"*","browserify":"^3.0.0"},"bugs":{"url":"https://github.com/sindresorhus/string-length/issues"},"homepage":"https://github.com/sindresorhus/string-length","_id":"string-length@0.1.0","dist":{"shasum":"ecedc88d6f5393cc7d13a4439b111cf60fb56ad1","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/string-length/-/string-length-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.1":{"name":"string-length","version":"0.1.1","description":"Get the real length of a string by correctly counting astral symbols","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"],"devDependencies":{"mocha":"*","browserify":"^3.0.0"},"bugs":{"url":"https://github.com/sindresorhus/string-length/issues"},"homepage":"https://github.com/sindresorhus/string-length","_id":"string-length@0.1.1","dist":{"shasum":"ab77870cddfd4a41deab673e5f6b03b92f3d4172","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/string-length/-/string-length-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.1.2":{"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"},"bugs":{"url":"https://github.com/sindresorhus/string-length/issues"},"homepage":"https://github.com/sindresorhus/string-length","_id":"string-length@0.1.2","dist":{"shasum":"ab04bb33867ee74beed7fb89bb7f089d392780f2","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/string-length/-/string-length-0.1.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"name":"string-length","version":"1.0.0","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"},"files":["index.js"],"keywords":["unicode","string","str","length","astral","symbol","surrogates","codepoints","ansi","escape","codes"],"dependencies":{"strip-ansi":"^2.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"5aa9b5946c927c2884a49741a066fdb3f30a6aa1","bugs":{"url":"https://github.com/sindresorhus/string-length/issues"},"homepage":"https://github.com/sindresorhus/string-length","_id":"string-length@1.0.0","_shasum":"5f0564b174feb299595a763da71513266370d3a9","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"5f0564b174feb299595a763da71513266370d3a9","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/string-length/-/string-length-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"string-length","version":"1.0.1","description":"Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/string-length"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["unicode","string","str","length","astral","symbol","surrogates","codepoints","ansi","escape","codes"],"dependencies":{"strip-ansi":"^3.0.0"},"devDependencies":{"mocha":"*"},"gitHead":"18c47a338a5f7b8df45566579ff588ba7a82ac6e","bugs":{"url":"https://github.com/sindresorhus/string-length/issues"},"homepage":"https://github.com/sindresorhus/string-length","_id":"string-length@1.0.1","_shasum":"56970fb1c38558e9e70b728bf3de269ac45adfac","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"56970fb1c38558e9e70b728bf3de269ac45adfac","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/string-length/-/string-length-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}}},"name":"string-length","time":{"modified":"2017-03-05T10:37:14.028Z","created":"2014-04-16T21:49:45.503Z","0.1.0":"2014-04-16T21:49:45.503Z","0.1.1":"2014-04-30T22:51:26.244Z","0.1.2":"2014-05-01T21:49:01.365Z","1.0.0":"2014-08-13T13:37:13.130Z","1.0.1":"2015-07-16T21:16:09.833Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/string-length"}