{"name":"lines-and-columns","description":"Maps lines and columns to character offsets and back.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"lint":"tslint --config tslint.json --project tsconfig.json --type-check","lint-fix":"tslint --config tslint.json --project tsconfig.json --type-check --fix","prebuild":"rm -rf dist","build":"./script/build","pretest":"npm run build","test":"mocha","prepublish":"npm run lint && 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":{"@types/mocha":"^2.2.34","@types/node":"^6.0.52","mocha":"^3.2.0","semantic-release":"^6.3.2","ts-node":"^1.7.2","tslint":"^4.1.1","typescript":"^2.1.4"},"version":"1.1.6","gitHead":"bde3deba75c01fa95d18cd4786593df2318cdeb6","_id":"lines-and-columns@1.1.6","_shasum":"1c00c743b433cd0a4e80758f7b64a57440d9ff00","_from":".","_npmVersion":"2.15.11","_nodeVersion":"6.9.2","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"1c00c743b433cd0a4e80758f7b64a57440d9ff00","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.1.6.tgz","integrity":"sha512-8ZmlJFVK9iCmtLz19HpSsR8HaAMWBT284VMNednLwlIMDP2hJDCIhUp0IZ2xUcZ+Ob6BM0VvCSJwzASDM45NLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLl/FNkkYPyi2ee1uoarDfXWpx+xhCI11T8dc9V0Z5FgIhAJBncoAQNpYZQuUze6Xrm0kwlmyZxai9supNtSlWQUzC"}],"size":2287,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.1.6.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/lines-and-columns-1.1.6.tgz_1482255134226_0.4856822253204882"},"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":1482255134921,"_cnpm_publish_time":1482255134921,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}