{"name":"lines-and-columns","version":"1.1.1","description":"Maps lines and columns to character offsets and back.","main":"dist/lines-and-columns.cjs.js","jsnext:main":"dist/lines-and-columns.es6.js","scripts":{"flow":"flow check --all","build":"rm -rf dist && rollup -c -f cjs -o dist/lines-and-columns.cjs.js && rollup -c -f es6 -o dist/lines-and-columns.es6.js","pretest":"npm run build","test":"mocha test.js","prepublish":"npm run flow && npm run build"},"files":["dist"],"repository":{"type":"git","url":"git+https://github.com/eventualbuddha/lines-and-columns.git"},"keywords":["lines","columns","parser"],"author":{"name":"Brian Donovan","email":"me@brian-donovan.com"},"license":"MIT","bugs":{"url":"https://github.com/eventualbuddha/lines-and-columns/issues"},"homepage":"https://github.com/eventualbuddha/lines-and-columns#readme","devDependencies":{"babel":"^6.5.2","babel-plugin-syntax-class-properties":"^6.5.0","babel-plugin-transform-class-properties":"^6.6.0","babel-plugin-transform-es2015-block-scoping":"^6.7.0","babel-plugin-transform-es2015-classes":"^6.6.5","babel-plugin-transform-es2015-destructuring":"^6.6.5","babel-plugin-transform-es2015-modules-commonjs":"^6.7.0","babel-plugin-transform-es2015-shorthand-properties":"^6.5.0","babel-plugin-transform-flow-strip-types":"^6.7.0","babel-plugin-transform-strict-mode":"^6.6.5","mocha":"^2.4.5","rollup":"^0.25.4","rollup-plugin-babel":"^2.4.0"},"gitHead":"4650b8f7a8a739a06328a5de84400753c9cbe273","_id":"lines-and-columns@1.1.1","_shasum":"4f46560cc4176f202250bae717cc6121ce7ddb48","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"4f46560cc4176f202250bae717cc6121ce7ddb48","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.1.1.tgz","integrity":"sha512-QZZcNSKtmXciGthYI8EQ3qqkvQMdR1+sxtdRQzv8dR7+jSWiJqTl2kKNaMyAJBFhsYYsj/Up15AjCqaZozkEgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRZs5qWlF5RFKVMIgYQ7bhu1GGDRZRz6LCevDibiWCDQIgY7yb9bU42LusoxSoPxCHbFs0UwIyqFX6RuJbBbpqRcc="}],"size":2549,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.1.1.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lines-and-columns-1.1.1.tgz_1457488564610_0.6213514695409685"},"directories":{},"readme":"# lines-and-columns\n\nMaps lines and columns to character offsets and back. This is useful for parsers\nand other text processors that deal in character ranges but process text with\nmeaningful lines and columns.\n\n## Install\n\n```\n$ npm install [--save] lines-and-columns\n```\n\n## Usage\n\n```js\nimport { LinesAndColumns } from 'lines-and-columns'\n\nconst lines = new LinesAndColumns(\n  `table {\n  border: 0\n}`\n)\n\nlines.locationForIndex(9)\n// { line: 1, column: 1 }\n\nlines.indexForLocation({ line: 1, column: 2 })\n// 10\n```\n\n## License\n\nMIT\n","publish_time":1457488567519,"_cnpm_publish_time":1457488567519,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}