{"name":"line-column-path","version":"3.0.0","description":"Parse and stringify file paths with line and column like `unicorn.js:8:14`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/line-column-path.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"dependencies":{"type-fest":"^2.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"9a2cf90dc477b5d40e1ca883a74adfe123b12a6b","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"homepage":"https://github.com/sindresorhus/line-column-path#readme","_id":"line-column-path@3.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.13.0","dist":{"integrity":"sha512-Atocnm7Wr9nuvAn97yEPQa3pcQI5eLQGBz+m6iTb+CVw+IOzYB9MrYK7jI7BfC9ISnT4Fu0eiwhAScV//rp4Hw==","shasum":"c873b42feb57f5f97bc72af30d21581076b3119e","tarball":"http://registry-npm.ywwl.com/line-column-path/download/line-column-path-3.0.0.tgz","fileCount":5,"unpackedSize":5420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEnSbCRA9TVsSAnZWagAAsBwP/jeqBqww0mHTVXDA8sSE\nkcJC90iiabnB0MuIEfP4LHEPxDjoqGu30xEplhRcHHaAKd/xEqt7GJubEZ7n\nCElDs06Jk/Lj4FJPEt/1Kh+gxDovy9l/iddqqFkObAYg5r5Mr9Yz7oqow6DM\nvgqzSodDNCHAiJO3xqKsZSPe+BJi1PusAm8xtt7/8VwG1qEYU/ow210yDro2\nKkCnP3xoKosbPHXmj6zSlZBc3aqPYcp8M3Ouv1AZTpjOwpZEiaCRBU12QZXM\npPkq75D8xUOtxCUs4WqyRis4XYLpukmrEiMizIaRePoXcsIhtmAL2nn6ypwU\ncEb0MZIrFAzr45w7COywgxN5tTyvEDrQm2sk6LYj74woqoxHLH/212VQdivY\nQy+Ce8aXhYh1vxq6x3YG2XyD8w50Xfo9HiF4OVyC7k/DGyMfdalfKSV+Uek/\n4IxErKXBZnJeSQ34jVbna9u770dUzCEggo6X+Uj1NjTz52bOSLfeaDsDRcHb\nGhmLtSdQmFMlnOWB9EbwAuw0ODXHA1e/RLxZbchFi0A4O03NUZi8h+mFrUHG\nWwULPy4V2PXGiQ6sgYvjzsc23rf/rlFrZIUpWpsTATiJ5OumgbjF3ETwbVKf\nHL/nNxrfJvoKZefrhBbUKfTle/mZtR5aeH1Kl8dDjXa04m4gN+0pUEAIru2j\nTmRd\r\n=e4Fi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBH4YDDts1NRhz4p/UoAtAiXXs3DXpyYR5B9E4u1evujAiEA1CjZfKCOBsJDsHTGpwPJyZMQSkfmkF+mUohfFy+U86g="}],"size":2249,"noattachment":false,"key":"/line-column-path/-/line-column-path-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/line-column-path_3.0.0_1628599451728_0.4754550299248044"},"_hasShrinkwrap":false,"readme":"# line-column-path\n\n> Parse and stringify file paths with line and column like `unicorn.js:8:14`\n\n\n## Install\n\n```\n$ npm install line-column-path\n```\n\n\n## Usage\n\n```js\nimport {parseLineColumnPath, stringifyLineColumnPath} from 'line-column-path';\n\nconst parsed = parseLineColumnPath('unicorn.js:8:14');\n//=> {file: 'unicorn.js', line: 8, column: 14}\n\nstringifyLineColumnPath(parsed);\n//=> 'unicorn.js:8:14'\n```\n\n## API\n\n### parseLineColumnPath(path)\n\n#### path\n\nType: `string | object`\n\nThe file path to parse.\n\nCan also be an object that you want to validate and normalize.\n\n### stringifyLineColumnPath(path, options?)\n\n#### path\n\nType: `object`\n\nObject with a `.file` property and optionally a `.line` and `.column` property.\n\n#### options\n\nType: `object`\n\n##### file\n\nType: `boolean`\\\nDefault: `true`\n\nOutput the file path.\n\nSetting this to `false` will result in `8:18` instead of `unicorn.js:8:14`.\n\n##### column\n\nType: `boolean`\\\nDefault: `true`\n\nOutput the column.\n\nSetting this to `false` will result in `unicorn.js:8` instead of `unicorn.js:8:14`.\n","publish_time":1628599451899,"_cnpm_publish_time":1628599451899,"dist-tags":{"latest":"4.0.0"}}