{"name":"lines-and-columns","version":"1.0.0","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","engines":{"node":">=4.0.0"},"scripts":{"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"},"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.1.18","babel-plugin-transform-es2015-destructuring":"^6.1.18","babel-plugin-transform-es2015-modules-commonjs":"^6.2.0","babel-plugin-transform-flow-strip-types":"^6.1.18","babel-plugin-transform-strict-mode":"^6.2.0","mocha":"^2.3.4","rollup":"^0.21.0","rollup-plugin-babel":"^2.1.0"},"gitHead":"0e88ddfececd4af4f9eaf6c2987cd321f5e66459","_id":"lines-and-columns@1.0.0","_shasum":"de486cde66262180bce3119585766e9a7d056784","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"de486cde66262180bce3119585766e9a7d056784","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.0.0.tgz","integrity":"sha512-6zPjI/ABrHq26yGsnqERtjBS5X8PB+OMLeKmWDS5Xs81Dzz4b8mzHGpZ76vJEd3MqCSZFuXRopYDLQbbAKQ5/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDF3Mn+7SYRJl18bz+hYALOPQhqEEzncXDSeF3oq+3EKAiAPEdScSROlo1vjTIfMYS/XAQDZUj7ajHqtpDrWI8BJRA=="}],"size":6816,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.0.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"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":1449086279708,"_cnpm_publish_time":1449086279708,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}