{"name":"lines-and-columns","version":"1.2.3","description":"Maps lines and columns to character offsets and back.","keywords":["lines","columns","parser"],"homepage":"https://github.com/eventualbuddha/lines-and-columns#readme","bugs":{"url":"https://github.com/eventualbuddha/lines-and-columns/issues"},"repository":{"type":"git","url":"git+https://github.com/eventualbuddha/lines-and-columns.git"},"license":"MIT","author":{"name":"Brian Donovan","email":"brian@donovans.cc"},"main":"./build/index.js","types":"./build/index.d.ts","scripts":{"build:watch":"tsc --build tsconfig.build.json --watch","lint":"eslint .","lint:fix":"eslint . --fix","test":"is-ci test:coverage test:watch","test:coverage":"jest --coverage","test:watch":"jest --watch"},"devDependencies":{"@types/jest":"^27.0.3","@types/node":"^16.11.9","@typescript-eslint/eslint-plugin":"^5.4.0","@typescript-eslint/parser":"^5.4.0","esbuild":"^0.13.15","esbuild-runner":"^2.2.1","eslint":"^8.2.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","is-ci-cli":"^2.2.0","jest":"^27.3.1","prettier":"^2.4.1","semantic-release":"^18.0.0","typescript":"^4.5.2"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"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","readmeFilename":"README.md","gitHead":"202600ade7764fad528c0621d7640c43e535d4d1","_id":"lines-and-columns@1.2.3","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-bQEvPBbeyPQGdQ/1H/tnLUz0479EH/9pHxCe3TGRQFxpg/PIbBeTUwpm7xyewdFfHjKLGidU/lSH1QkF+i8HUg==","shasum":"3360dbb0dfffd23a6ad0300135efacb50f50eb73","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.2.3.tgz","fileCount":5,"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","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEj8q87wr+aoHUWSwPR77tgcGfC22k5yV/+09bto1IX6AiBOap0ffwBafM8a08S+xorRI+vmoT14FjuwVTN1IgiWMg=="}],"size":2299,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.2.3.tgz"},"_npmUser":{"name":"eventualbuddha","email":"brian@donovans.cc"},"directories":{},"maintainers":[{"name":"eventualbuddha","email":"brian@donovans.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lines-and-columns_1.2.3_1637454655610_0.309924235629945"},"_hasShrinkwrap":false,"publish_time":1637454655831,"_cnpm_publish_time":1637454655831,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}