Parse and stringify file paths with line and column like `unicorn.js:8:14`
npm install line-column-path> Parse and stringify file paths with line and column like unicorn.js:8:14
``sh`
npm install line-column-path
`js
import {parseLineColumnPath, stringifyLineColumnPath} from 'line-column-path';
const parsed = parseLineColumnPath('unicorn.js:8:14');
//=> {file: 'unicorn.js', line: 8, column: 14}
stringifyLineColumnPath(parsed);
//=> 'unicorn.js:8:14'
`
#### path
Type: string | URL | object
The file path to parse.
Can also be an object that you want to validate and normalize.
#### path
Type: object
Object with a .file property and optionally a .line and .column property.
#### options
Type: object
##### file
Type: boolean\true
Default:
Output the file path.
Setting this to false will result in 8:18 instead of unicorn.js:8:14.
##### column
Type: boolean\true
Default:
Output the column.
Setting this to false will result in unicorn.js:8 instead of unicorn.js:8:14`.