{"name":"lines-and-columns","description":"Maps lines and columns to character offsets and back.","main":"dist/lines-and-columns.js","jsnext:main":"dist/lines-and-columns.mjs","scripts":{"flow":"flow check --all","prebuild":"rm -rf dist","build":"rollup -c","pretest":"npm run build","test":"mocha","prepublish":"npm run flow && npm run build","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"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.8.0","babel-plugin-transform-class-properties":"^6.10.2","babel-plugin-transform-es2015-block-scoping":"^6.10.1","babel-plugin-transform-es2015-classes":"^6.9.0","babel-plugin-transform-es2015-destructuring":"^6.9.0","babel-plugin-transform-es2015-modules-commonjs":"^6.10.3","babel-plugin-transform-es2015-shorthand-properties":"^6.8.0","babel-plugin-transform-flow-strip-types":"^6.8.0","babel-plugin-transform-strict-mode":"^6.8.0","cz-conventional-changelog":"^1.1.6","flow-bin":"^0.27.0","mocha":"^2.5.3","rollup":"^0.33.0","rollup-plugin-babel":"^2.6.1","semantic-release":"^4.3.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"version":"1.1.2","gitHead":"79964233efe24ee9a5ae4eae85ebe7142ebddf41","_id":"lines-and-columns@1.1.2","_shasum":"648792a91ae008b973a325974782580c4e017275","_from":".","_npmVersion":"2.15.8","_nodeVersion":"6.2.2","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"648792a91ae008b973a325974782580c4e017275","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.1.2.tgz","integrity":"sha512-F0g79Mp7j2XWTcF30mEDILAlWCDkOY8uVd+HAwsLe99rguffDJcNHAFyySyGgAU0heNoyaRP00iL6HakQyrBIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnXTPhREmERDNi1o8TMKSdx7Qsp+7wePX3hCJYffuyYgIgYDnQ2SmJ8OMH+AD/k+OVIFRRWWAyVmAnBiCVP3QV9Eg="}],"size":2615,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.1.2.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lines-and-columns-1.1.2.tgz_1466739388702_0.5629058612976223"},"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":1466739391344,"_cnpm_publish_time":1466739391344,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}