{"name":"lines-and-columns","version":"1.1.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","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":"c1e6ba514d96fcd917383ccfb854cc33ea15cf9e","_id":"lines-and-columns@1.1.0","_shasum":"91b83757be950239b1f9ff6f46f1370d69d026d2","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"eventualbuddha","email":"me@brian-donovan.com"},"dist":{"shasum":"91b83757be950239b1f9ff6f46f1370d69d026d2","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.1.0.tgz","integrity":"sha512-EjOc62wKB5odUIlr4JyxjRwlxtqFdM6gnPNSgxlSdlRiTqdQtkC75oWHydJDcqJaYxVo/53JCdXz2pejL02B5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWv3B2jY0hebjT/9i3iS7a1qVamCI/6ChP7zNZfVDxeAiBPRoNfAWFfhEeT2p+4Ze+/iy4h/Y3g+S7HEldkRr+rrw=="}],"size":2548,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.1.0.tgz"},"maintainers":[{"name":"eventualbuddha","email":"me@brian-donovan.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/lines-and-columns-1.1.0.tgz_1457488184614_0.5232401010580361"},"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":1457488187038,"_cnpm_publish_time":1457488187038,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}