{"name":"lines-and-columns","version":"1.0.2","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"},"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.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":"610143f9664251127d20ca6d04aa7383e9e60cbc","_id":"lines-and-columns@1.0.2","_shasum":"33d9624cfcc5e3eb63923be2d8b7155fbb04c155","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"33d9624cfcc5e3eb63923be2d8b7155fbb04c155","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.0.2.tgz","integrity":"sha512-JLPLufguZW3v23idTMD2Dv6+iyxcVlohQLZJVEshy5juPTmE/AGEBGmJelvOLPR4AqWnY/kAo3k6YBHlC1+3dg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwDB+tzqn5UWTX2+5EhnkwW82K5G3FvMsemgLdB45ZHAiEAjP+wBESGp8jMWplqIVIYvrDu4p2gIXEPqTjo3/j+qg8="}],"size":2110,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.0.2.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":1449343925157,"_cnpm_publish_time":1449343925157,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}