{"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":{},"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":1493892226757,"_cnpm_publish_time":1493892226757,"dist-tags":{"latest":"4.0.0"}}