{"name":"lines-and-columns","version":"2.0.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"},"type":"module","main":"./build/index.cjs","exports":{"import":"./build/index.mjs","require":"./build/index.cjs"},"types":"./build/index.d.ts","scripts":{"prebuild":"rm -rf build","build":"tsc --project tsconfig.build.json && mv build/index.js build/index.mjs && tsc --project tsconfig.build.json --module commonjs && mv build/index.js build/index.cjs","build:watch":"tsc --project 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":"5febeb9674ded91908d3893581224f64111d95c3","_id":"lines-and-columns@2.0.3","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w==","shasum":"b2f0badedb556b747020ab8ea7f0373e22efac1b","tarball":"http://registry-npm.ywwl.com/lines-and-columns/download/lines-and-columns-2.0.3.tgz","fileCount":6,"unpackedSize":7657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnFzFCRA9TVsSAnZWagAA+C4P/3KQhvKs5A1BkFWOP4tL\nZiccD2HrBpIny7DOL5rEPdtyeHe9aJIBwNwNAT9k9ISJexZYr95aatmL7KfJ\nh+E2niEz/uB58SBWg7GKeQGJVOPo025eVgbR/V39qVn9bGUBemlSkjIC5fhO\nNVK7xZ4OMmV8ShDNDheJ4fwO7Cy2Yu5lqFvRMMkfKDqhUtv4zWf0Dymc1TgI\nw2fqnraReaxZF6aA40ewTHLkLheSKSzdw58d/mdOdHGreCuKyyB4mPMCyQlo\nN3n3yzYLsqIssPG9xWPa5pzA0qZJMIkz8uWM83KpE0BUrr64z3RC2C/kSK7O\nY95si/A0EKOuGU3J4hcAf9SVAYyP4ZLeQBRx0eid7df7k0Sc5/A4/OnA1BNR\ndFRX4NVewwaVuUXbuSByzji3GuSCvsiHgq2E2O9qfH+RGIKFJA9jafNbckmP\nXEr8LHFiNa5WBiQ7fhxUqwLoFLwZX3PCzBAFPLg5Yb4O0LU1f14BbO/6e8Uj\n40s09GTWxM3QWSj1G9nazK4sF3CaIcVnD5O6F74pGikd3EDTizOrS5Ejyg6C\nEkLQWNHSH5Sz1MQWEcM2Z9LGF1JZBitNBMZM/fGeqpFkd8Wh732vVsL6hMz8\ncYjZWxQccitIUbe8CCdVh0UwlEUJsLxDkZGaTWo7YG3u8fKw5JLX6Dh2To64\ndYU1\r\n=EVIP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRUQbmPoUvotF/PZFSjF5VNRhRGdmi4AYD2ZFc0TRaCAiABQcFOwUdZidPJGnTUWpiZvNyBhhy7vWh9AuK0Mu3jAg=="}],"size":2467,"noattachment":false,"key":"/lines-and-columns/-/lines-and-columns-2.0.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_2.0.3_1637637316867_0.07975102360943587"},"_hasShrinkwrap":false,"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":1637637317010,"_cnpm_publish_time":1637637317010,"dist-tags":{"latest":"2.0.4","v11x":"1.1.11","v12x":"1.2.4"}}