{"bugs":{"url":"https://github.com/eventualbuddha/lines-and-columns/issues"},"dist":{"shasum":"3360dbb0dfffd23a6ad0300135efacb50f50eb73","tarball":"https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.3.tgz","fileCount":5,"integrity":"sha512-bQEvPBbeyPQGdQ/1H/tnLUz0479EH/9pHxCe3TGRQFxpg/PIbBeTUwpm7xyewdFfHjKLGidU/lSH1QkF+i8HUg==","signatures":[{"sig":"MEQCIEj8q87wr+aoHUWSwPR77tgcGfC22k5yV/+09bto1IX6AiBOap0ffwBafM8a08S+xorRI+vmoT14FjuwVTN1IgiWMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmZM/CRA9TVsSAnZWagAAtnYQAIcGEoNmDTkeHC10MGTj\nX/71yuCaQZhaZKSD3sbATqNdTG7gV6HA8GP9Gs2zXmC+DfyDYIdJO4Eafclo\nEtulNcfZDmjMQeqBvyXw/jmCNUejxM2BD6gFZNOdb753ndEv/Qg2DB1B9Wlu\ne7+cLBrb6y/GPmBPoQknORjggOR4RTg3OU22dte5r+rrbkLDLxb8f+ranGnF\nbwrozis+zfH1mH9KQAwYMxm9Fm+5M4TDRPeYZfAH57+6yM+VwKxcJQJSKmJa\njzYWdbfJefMwtT/80NzhILkQyRtbhX5yrfNkluLvqca8YWQ37WoEgnD7se9+\nv1YBoWM3jyS+icBYDXU6r+nhCC2sA4ZZsz3/o5SfIQ+JkyG9+eHG7AK4GLQx\nmty2ZqRGL+LNwXj8tNI4mFIsMEZWpk75XxJnnqcHQlYvKSkecCJkegRUncQT\nmVUJxOYAUQ1lyXmpFioZqIEL7nW5X33b0bHj6g8WmgIv6NXGK/eo0spYVM0m\nsI9A4oPgrTHowhhkvj4huNV6Tkgm1M6V7i8QhJVpsgxnvqb6UZC57nxxxNyV\nsrp3l4fMRqCIDEmU/8Cfd8XYZcOiFJruPKWUb3KHE14uCmbJhlZ56d6HQ7Fr\np2xPc4stPpbXlI2eyQpElg5qkflzEO3tcHNefB9DpTO4FPOc5o0rI6pFNbSA\noEBT\r\n=ltsJ\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","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"gitHead":"202600ade7764fad528c0621d7640c43e535d4d1","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.2.3_1637454655610_0.309924235629945","host":"s3://npm-registry-packages"},"_id":"lines-and-columns@1.2.3","version":"1.2.3"}