{"bugs":{"url":"https://github.com/eventualbuddha/lines-and-columns/issues"},"dist":{"shasum":"ca5695c70af5b6c3194fd87fa6e584dc2ddcf053","tarball":"https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.11.tgz","fileCount":5,"integrity":"sha512-UewVW4JbFN3c0XERx53POdcTx1/bnXGaAtR7gFLQxORgkpZP0VDg6Y5GddrOVx2abR1aG4cWf3x4DfA1WspMKA==","signatures":[{"sig":"MEYCIQDGIQzc/1R2Oxur6XFLJh9SH/GR0r1Jy05QL1UMkVTn8QIhAKNBoAv1GGSDNyw6ujkNJQWp2OcBwz9dCLNZzlUjgIT8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmb1cCRA9TVsSAnZWagAAyZYQAIy8ZVU8LPQRHsnn0PQb\nGxr0Yg3Eb38pzIpvvNPmhxDQ2fc/TNvQDYYqVVSsjdtzK94usptCjg2ChnjL\n5Zsse0K7i53bmKiUxEmGR7PmBxRAHeWKfZmjUGAf3WpUa40f83Hi2KQwjVY6\nhbxpYSMb4V5Tda1/ilKzs8mWFcvAKl1PyHFOMnIoMs8WHFlCgPjK0sEh3n1W\nhm5ZOy/NxYp0iO/pvDaf7BPZu9X/ysP0asi0oBJ+fMtyQ5G3eYBcIIPO9oMC\ngkFQ4eTQUFOeCmR7+n+vmiN8ZjKiA2flhqhomfP95/zr6WcBcvCfmxwfPW8r\nTfJd+in+ZEPS56o1mdbn9GBh2zWIltJzyAU5wwfDAv0+LNlFrc/qVFjnBF89\nCrwyABy0QUxq9eFRIan+YY0GSAmx3lbOqMkdUppgPq21EOndG+/j/jtFM33a\n8g7nP7rIjMrOLFsP3/g6LFS++7xrbXdliV+7bfQpSGDW4ZZkdRhTaL+qQ0Lh\nD6N6vXBWCfShuPUsLr/6l1x/lTywFqIboy2fCMqAC8N0Z8BYGKRnf7bGoMEy\nHVZtbX09mk1rn2e0nwzkW1unlMHU926Jjyw0zrClbh3UJwIUKxrmuUjE187w\nur5+tCeCx8YPEDZPhEGAfHofQDR0Qmet+fwj2a29KGGExPu3mOQE71gT0sDv\nYLYB\r\n=t1G8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/index.js","name":"lines-and-columns","types":"./build/index.d.ts","author":{"name":"Brian Donovan","email":"brian@donovans.cc"},"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","gitHead":"2add0e01a821878b3f9184c321d82d62cb9e397f","license":"MIT","scripts":{"lint":"eslint .","test":"is-ci test:coverage test:watch","lint:fix":"eslint . --fix","test:watch":"jest --watch","build:watch":"tsc --build tsconfig.build.json --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"eventualbuddha","email":"brian@donovans.cc"},"homepage":"https://github.com/eventualbuddha/lines-and-columns#readme","keywords":["lines","columns","parser"],"repository":{"url":"git+https://github.com/eventualbuddha/lines-and-columns.git","type":"git"},"_npmVersion":"8.1.0","description":"Maps lines and columns to character offsets and back.","directories":{},"maintainers":[{"name":"eventualbuddha","email":"brian@donovans.cc"}],"_nodeVersion":"16.13.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^27.3.1","eslint":"^8.2.0","esbuild":"^0.13.15","prettier":"^2.4.1","is-ci-cli":"^2.2.0","typescript":"^4.5.2","@types/jest":"^27.0.3","@types/node":"^16.11.9","esbuild-runner":"^2.2.1","semantic-release":"^18.0.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@typescript-eslint/parser":"^5.4.0","@typescript-eslint/eslint-plugin":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/lines-and-columns_1.1.11_1637465435935_0.013558742045275629","host":"s3://npm-registry-packages"},"_id":"lines-and-columns@1.1.11","version":"1.1.11"}