{"_id":"line-column-path","_rev":"1314424","name":"line-column-path","description":"Parse and stringify file paths with line and column like `unicorn.js:8:14`","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2026-09-11T03:09:08.000Z","created":"2017-05-04T10:03:46.757Z","4.0.0":"2025-11-22T11:52:14.245Z","3.0.0":"2021-08-10T12:44:11.899Z","2.0.0":"2019-04-22T08:09:49.817Z","1.0.0":"2017-05-04T10:03:46.757Z"},"users":{"flumpus-dev":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/line-column-path.git"},"versions":{"4.0.0":{"name":"line-column-path","version":"4.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":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"dependencies":{"unicorn-magic":"^0.4.0"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.3"},"gitHead":"458011b0709a2a489bfc1ad19974475e90e1479e","types":"./index.d.ts","_id":"line-column-path@4.0.0","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"homepage":"https://github.com/sindresorhus/line-column-path#readme","_nodeVersion":"20.19.5","_npmVersion":"11.6.1","dist":{"integrity":"sha512-Zvpvd56i9FRV5kaJFiiY1t+FNMEH+dGEaLyQprqKlGHBAxJXmdSk+8tVsh6b9YlxbfyyuLrhJCkzwB+AmOBZ0g==","shasum":"e0aa11f217a6c177ec61c455e0587d9b6944adae","tarball":"http://registry-npm.ywwl.com/line-column-path/download/line-column-path-4.0.0.tgz","fileCount":5,"unpackedSize":5531,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC/S7+1sQNuaXAAmoeAIpYb1pSrptED+BEvhMB+zdjJHQIgXwae6lvol+PC42H8+8NEiaA/YF+V8hkmeMAXfI9l8fM="}],"size":2291,"noattachment":false,"key":"/line-column-path/-/line-column-path-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/line-column-path_4.0.0_1763812333992_0.9778277466383549"},"_hasShrinkwrap":false,"publish_time":1763812334245,"_cnpm_publish_time":1763812334245},"3.0.0":{"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,"publish_time":1628599451899,"_cnpm_publish_time":1628599451899},"2.0.0":{"name":"line-column-path","version":"2.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"dependencies":{"type-fest":"^0.4.1"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"a6d0e9da17eaabb35f4ca092fe05af3f6eed8fca","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"homepage":"https://github.com/sindresorhus/line-column-path#readme","_id":"line-column-path@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-nz3A+vi4bElhwd62E9+Qk/f9BDYLSzD/4Hy1rir0I4GnMxSTezSymzANyph5N1PgRZ3sSbA+yR5hOuXxc71a0Q==","shasum":"439aff48ef80d74c475801a25b560d021acf1288","tarball":"http://registry-npm.ywwl.com/line-column-path/download/line-column-path-2.0.0.tgz","fileCount":5,"unpackedSize":5341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvXbOCRA9TVsSAnZWagAA0vwP/3zJpFzYzT0gqrEYVA2T\nSdBAkis/8cDu8MdJSTTXD1R/R5/Ll5WwKPjesMIF/muHdYJyu5RUkuMu5gXU\nHRkHYyewByMtmJtN7WbEqO8uNdXH8jIxJkvIfWqe7qSqqXdDuaVUf5JqQpa0\noX3/eUCPLzPJo6Tl4F66Bb2gqdNRO2i+FknIBRvT2aqqn3CeVNWURP5Ut5R2\nFr7MgbqRkn1VwOKsgNbaG0ccIytuVZ4LyD51+zSz6kqxHk+dPD1VTBoiy7fF\nE8aKvd0kKflSycid9LlQHpfohsGrQ8ndDuKAt4z3J0Lw1U+Jem25qkILGCg7\niSAufAOpUzEhHVBgi4RJ2gaeWhp6iEWhwXZFHQKjDwZ/2Hrkm1SxtxmJNe75\nGhgDKo//7UVccwyFvgcIclZMTaInteMvuQPaPICMX0q2cNzW9nDx0a0ICtr5\n27+rWdhePxbR823xZL5nIgr3JObSyIy4Bx8rXtgWLSkImqogORz4d/EWkyJw\nyZI6SLA/f9D7yFVsDNOBJf5hQ8yGtrh7Szi46XcdrI2H0va4LyQAdTFrft2I\n9wJY/YPiMBTpHdXHsjPjNkSuxLtJ2k2uyDnbsyTr8Y1+70EI0FI8RxGlJjHL\nhFNv2UR6EQDWxYh7bDqX8Ui+6ctUT9zvl4mjJflmNG1nUl7RXTqkY1OLEpbc\nDa4b\r\n=n5d7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFz/WuzN70kiANslT6FBQgJTU0N+8Dif1GupVpspnR2gIhAMNjloEK9vrcVsChmZ6R6P3iJqY9pxwyktTmyfVqASLI"}],"size":2291,"noattachment":false,"key":"/line-column-path/-/line-column-path-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/line-column-path_2.0.0_1555920589612_0.04535801898270919"},"_hasShrinkwrap":false,"publish_time":1555920589817,"_cnpm_publish_time":1555920589817},"1.0.0":{"name":"line-column-path","version":"1.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"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"08a4d10ac757f6e94bd9e9c3dab29eb786897e3d","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"homepage":"https://github.com/sindresorhus/line-column-path#readme","_id":"line-column-path@1.0.0","_shasum":"383b83fca8488faa7a59940ebf28b82058c16c55","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"383b83fca8488faa7a59940ebf28b82058c16c55","tarball":"http://registry-npm.ywwl.com/line-column-path/download/line-column-path-1.0.0.tgz","integrity":"sha512-ww792vgmD88kqXk0P2LiwcOww75BNvGtgVqoFxtCB33PvwLQpLQBgu2rLWAtGsFWBzsnXyIjFtA86EQ4Dl0rMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDj2BUwccfUkMK+guAaeULXindzhm0sff44R5KNZiVJ1QIgV3fV5j7O1oPCil7g1TgirXtNRWRW7p84yWOa6/9wpdI="}],"size":2003,"noattachment":false,"key":"/line-column-path/-/line-column-path-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/line-column-path-1.0.0.tgz_1493892226490_0.18765650712884963"},"directories":{},"publish_time":1493892226757,"_cnpm_publish_time":1493892226757}},"readme":"# line-column-path\n\n> Parse and stringify file paths with line and column like `unicorn.js:8:14`\n\n## Install\n\n```sh\nnpm install line-column-path\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 | URL | 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","_attachments":{},"homepage":"https://github.com/sindresorhus/line-column-path#readme","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"license":"MIT"}