{
  "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"
}
