{"_id":"line-column-path","_rev":"8-3f0c1c406f93c09e183458ea384c53e6","name":"line-column-path","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"line-column-path","version":"1.0.0","keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"line-column-path@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/line-column-path#readme","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"dist":{"shasum":"383b83fca8488faa7a59940ebf28b82058c16c55","tarball":"https://registry.npmjs.org/line-column-path/-/line-column-path-1.0.0.tgz","integrity":"sha512-ww792vgmD88kqXk0P2LiwcOww75BNvGtgVqoFxtCB33PvwLQpLQBgu2rLWAtGsFWBzsnXyIjFtA86EQ4Dl0rMA==","signatures":[{"sig":"MEUCIQDj2BUwccfUkMK+guAaeULXindzhm0sff44R5KNZiVJ1QIgV3fV5j7O1oPCil7g1TgirXtNRWRW7p84yWOa6/9wpdI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"383b83fca8488faa7a59940ebf28b82058c16c55","engines":{"node":">=4"},"gitHead":"08a4d10ac757f6e94bd9e9c3dab29eb786897e3d","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/line-column-path.git","type":"git"},"_npmVersion":"4.2.0","description":"Parse and stringify file paths with line and column like `unicorn.js:8:14`","directories":{},"_nodeVersion":"7.9.0","devDependencies":{"xo":"*","ava":"*"},"_npmOperationalInternal":{"tmp":"tmp/line-column-path-1.0.0.tgz_1493892226490_0.18765650712884963","host":"packages-12-west.internal.npmjs.com"}},"2.0.0":{"name":"line-column-path","version":"2.0.0","keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"line-column-path@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/line-column-path#readme","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"dist":{"shasum":"439aff48ef80d74c475801a25b560d021acf1288","tarball":"https://registry.npmjs.org/line-column-path/-/line-column-path-2.0.0.tgz","fileCount":5,"integrity":"sha512-nz3A+vi4bElhwd62E9+Qk/f9BDYLSzD/4Hy1rir0I4GnMxSTezSymzANyph5N1PgRZ3sSbA+yR5hOuXxc71a0Q==","signatures":[{"sig":"MEYCIQDFz/WuzN70kiANslT6FBQgJTU0N+8Dif1GupVpspnR2gIhAMNjloEK9vrcVsChmZ6R6P3iJqY9pxwyktTmyfVqASLI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"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"},"engines":{"node":">=8"},"gitHead":"a6d0e9da17eaabb35f4ca092fe05af3f6eed8fca","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/line-column-path.git","type":"git"},"_npmVersion":"6.4.1","description":"Parse and stringify file paths with line and column like `unicorn.js:8:14`","directories":{},"_nodeVersion":"10.15.3","dependencies":{"type-fest":"^0.4.1"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^1.4.1","tsd":"^0.7.2"},"_npmOperationalInternal":{"tmp":"tmp/line-column-path_2.0.0_1555920589612_0.04535801898270919","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"line-column-path","version":"3.0.0","keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"line-column-path@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/line-column-path#readme","bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"dist":{"shasum":"c873b42feb57f5f97bc72af30d21581076b3119e","tarball":"https://registry.npmjs.org/line-column-path/-/line-column-path-3.0.0.tgz","fileCount":5,"integrity":"sha512-Atocnm7Wr9nuvAn97yEPQa3pcQI5eLQGBz+m6iTb+CVw+IOzYB9MrYK7jI7BfC9ISnT4Fu0eiwhAScV//rp4Hw==","signatures":[{"sig":"MEUCIBH4YDDts1NRhz4p/UoAtAiXXs3DXpyYR5B9E4u1evujAiEA1CjZfKCOBsJDsHTGpwPJyZMQSkfmkF+mUohfFy+U86g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"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"},"type":"module","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"9a2cf90dc477b5d40e1ca883a74adfe123b12a6b","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/line-column-path.git","type":"git"},"_npmVersion":"7.13.0","description":"Parse and stringify file paths with line and column like `unicorn.js:8:14`","directories":{},"_nodeVersion":"16.2.0","dependencies":{"type-fest":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0","tsd":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/line-column-path_3.0.0_1628599451728_0.4754550299248044","host":"s3://npm-registry-packages"}},"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":"https://registry.npmjs.org/line-column-path/-/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="}]},"_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}},"time":{"created":"2017-05-04T10:03:46.757Z","modified":"2025-11-22T11:52:14.448Z","1.0.0":"2017-05-04T10:03:46.757Z","2.0.0":"2019-04-22T08:09:49.817Z","3.0.0":"2021-08-10T12:44:11.899Z","4.0.0":"2025-11-22T11:52:14.245Z"},"bugs":{"url":"https://github.com/sindresorhus/line-column-path/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/line-column-path#readme","keywords":["file","filepath","line","column","path","editor","position","parse","stringify","parsing","decode","encode","format"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/line-column-path.git"},"description":"Parse and stringify file paths with line and column like `unicorn.js:8:14`","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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","readmeFilename":"readme.md","users":{"flumpus-dev":true}}