{"name":"lines-and-columns","version":"1.1.7","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"},"type":"module","exports":"./build/index.mjs","types":"./build/index.d.ts","scripts":{"prebuild":"rm -rf build","build":"tsc --build tsconfig.build.json","build:watch":"tsc --build tsconfig.build.json --watch","lint":"eslint .","lint:fix":"eslint . --fix","prepublishOnly":"npm run lint && npm run build","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"},"gitHead":"78591e9929c0546ebdc52b73ddc8a898fe699ed8","_id":"lines-and-columns@1.1.7","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-HBp1gFWrO0H3YCWs7dSTUcSxcfREVWvTWr1qBLQlQ741CDHQuV+R2XYqEogJrscQs0obzz2N/TM5pDigBaf2XA==","shasum":"a3dba31d1b53d293ba700e20035be10b36189d12","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-1.1.7.tgz","fileCount":5,"unpackedSize":5452,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhmXNyCRA9TVsSAnZWagAAGu4P/A4itu1AGYzMG2JajK01\ntHGhny+0B1I1haWMelk2MSuJRSczT5mTtFapMPjIU6uJuzz/x4bSeZCAU65I\noHv6DEcXYmYIzGTcgT4B8hUBuSCCy9xF9wdl1V8qFRo9Hb0RxdSIj1lOHlsx\nW/TbRCsSFf1+LJQSiZo45mnc7SI60MvTSwwHHOt7leeZPh2KeAGq8xEq7PdU\nPkqrkPddxx2eOsGBWpGja7DuFj8uyhILB1B0VRm5URhZ2nwQCzTjOzYVNhC/\ntRIrd37fnFyBAYBREysrRwhrqG2CNDck9x4wV9+oKGyu5hF1vC0q3cuU5N2Q\ndyyKkjAp+td84kuXRfgT5mB0cgMCTDEAK3R2rBK8UsZgbcpVk2dtYZb1bR+S\n1TbnjPJ4aoN9ofl1gZeZR9FNMPz895OjGP3z0nGvsTh+lljYwr/EpFGHrS6D\nmVuLGbYze8Vd0fSUJ4T+AG8JAUeJLSc6mDT2+fs3yVGCASAakZ/tMq/fmK2p\ndrPmmpG2nbqqLs48nYdVmPBnjF7Sa6PnUw4CVyLp2xpzQekIXSvtZgi0/QbJ\nL05zsI1caPyl5mY8VoXhe6y8dY5bOJUBIPLBAjdyWyFwmaSS2VRX3fr9xmEi\nlbA/fY0sSI+i12CzftK+lr6UippxbfLfjrF9pyPEdEHucrMj14Z5rAfuE+SB\nfnLt\r\n=C9m7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQUZppFqgW90RpFo4y1Z8+fmkfElGz6hMOlRqr9sGXSQIhAPKWbpgAJ9nUljoftc/Vwlsx45g+9GvJeYrMjOhjwBbU"}],"size":2331,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-1.1.7.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.1.7_1637446514320_0.38816438343702564"},"_hasShrinkwrap":false,"deprecated":"please use 1.1.8 or 2.0.1 or later","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":1637446514474,"_cnpm_publish_time":1637446514474,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}