{"_id":"vfile-location","_rev":"265006","name":"vfile-location","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","dist-tags":{"latest":"4.1.0"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"time":{"modified":"2023-03-27T18:56:41.000Z","created":"2016-02-07T09:47:36.068Z","4.1.0":"2023-02-07T14:20:57.155Z","4.0.1":"2021-07-06T09:57:56.039Z","4.0.0":"2021-05-05T13:20:01.359Z","3.2.0":"2020-11-01T09:43:41.131Z","3.1.0":"2020-08-21T16:59:19.981Z","3.0.1":"2020-03-03T08:42:11.318Z","3.0.0":"2020-01-27T21:26:33.951Z","2.0.6":"2019-11-10T08:42:10.479Z","2.0.5":"2019-05-30T11:46:29.748Z","2.0.4":"2018-11-19T19:09:18.413Z","2.0.3":"2018-05-03T19:56:37.011Z","2.0.2":"2017-07-17T18:56:33.882Z","2.0.1":"2016-08-21T14:34:50.243Z","2.0.0":"2016-02-07T09:47:36.068Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"versions":{"4.1.0":{"name":"vfile-location","version":"4.1.0","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","license":"MIT","keywords":["vfile","vfile-util","util","utility","virtual","file","location","point","position","offset"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","vfile":"^5.0.0"},"devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"c45b3c7aba2e343be1922dc2188040f12094dcd7","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@4.1.0","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"shasum":"69df82fb9ef0a38d0d02b90dd84620e120050dd0","size":4472,"noattachment":false,"key":"/vfile-location/-/vfile-location-4.1.0.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-4.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_4.1.0_1675779657024_0.7383436937767536"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-07T14:20:57.155Z","publish_time":1675779657155,"_cnpm_publish_time":1675779657155},"4.0.1":{"name":"vfile-location","version":"4.0.1","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","license":"MIT","keywords":["vfile","vfile-util","util","utility","virtual","file","location","point","position","offset"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","vfile":"^5.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.39.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"2265250992c357b6425a96079c23699797221129","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@4.0.1","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"06f2b9244a3565bef91f099359486a08b10d3a95","size":3597,"noattachment":false,"key":"/vfile-location/-/vfile-location-4.0.1.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-4.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_4.0.1_1625565475886_0.379760424765734"},"_hasShrinkwrap":false,"publish_time":1625565476039,"_cnpm_publish_time":1625565476039,"_cnpmcore_publish_time":"2021-12-14T03:56:32.905Z"},"4.0.0":{"name":"vfile-location","version":"4.0.0","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","license":"MIT","keywords":["vfile","vfile-util","util","utility","virtual","file","location","point","position","offset"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","vfile":"^5.0.0","xo":"^0.39.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"aa844bc017f6186bea141932687325f981d7a2df","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@4.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.11.1","dist":{"shasum":"73bd77c70f3b25e9b8887f94733ff86a941b2fb9","size":3599,"noattachment":false,"key":"/vfile-location/-/vfile-location-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_4.0.0_1620220801128_0.7896269893290857"},"_hasShrinkwrap":false,"publish_time":1620220801359,"_cnpm_publish_time":1620220801359,"_cnpmcore_publish_time":"2021-12-14T03:56:33.115Z"},"3.2.0":{"name":"vfile-location","version":"3.2.0","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","license":"MIT","keywords":["vfile","vfile-util","util","utility","virtual","file","location","point","position","offset"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/unist":"^2.0.0","browserify":"^17.0.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","tinyify":"^3.0.0","tsd":"^0.13.1","vfile":"^4.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"tsd","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-number-properties":"off"},"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"00715f432eb45406e01be22246eb03b55dbcf9f5","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@3.2.0","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"shasum":"d8e41fbcbd406063669ebf6c33d56ae8721d0f3c","size":3426,"noattachment":false,"key":"/vfile-location/-/vfile-location-3.2.0.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-3.2.0.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_3.2.0_1604223821035_0.9674811785861039"},"_hasShrinkwrap":false,"publish_time":1604223821131,"_cnpm_publish_time":1604223821131},"3.1.0":{"name":"vfile-location","version":"3.1.0","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","license":"MIT","keywords":["vfile","vfile-util","util","utility","virtual","file","location","point","position","offset"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/unist":"^2.0.0","browserify":"^16.0.0","dtslint":"^3.0.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^8.0.0","remark-preset-wooorm":"^7.0.0","tape":"^5.0.0","tinyify":"^3.0.0","vfile":"^4.0.0","xo":"^0.33.0"},"scripts":{"format":"remark . -qfo && prettier . --write && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/prefer-number-properties":"off"},"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"7836dd00f860bc0e11c48b116f27a9562c53f2da","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@3.1.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.8","dist":{"shasum":"81cd8a04b0ac935185f4fce16f270503fc2f692f","size":3508,"noattachment":false,"key":"/vfile-location/-/vfile-location-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-3.1.0.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_3.1.0_1598029159890_0.6092293120598822"},"_hasShrinkwrap":false,"publish_time":1598029159981,"_cnpm_publish_time":1598029159981},"3.0.1":{"name":"vfile-location","version":"3.0.1","description":"vfile utility to convert between positional (line and column-based) and offset (range-based) locations","license":"MIT","keywords":["vfile","vfile-util","util","utility","virtual","file","location","position","offset"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/unist":"^2.0.0","browserify":"^16.0.0","dtslint":"^3.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","vfile":"^4.0.0","xo":"^0.27.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.{js,ts}\" && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"0a04a32a63eab69ac316207108fe59afc94b4718","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@3.0.1","_nodeVersion":"13.9.0","_npmVersion":"6.13.7","dist":{"shasum":"d78677c3546de0f7cd977544c367266764d31bb3","size":3455,"noattachment":false,"key":"/vfile-location/-/vfile-location-3.0.1.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-3.0.1.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_3.0.1_1583224931144_0.5250405252007078"},"_hasShrinkwrap":false,"publish_time":1583224931318,"_cnpm_publish_time":1583224931318},"3.0.0":{"name":"vfile-location","version":"3.0.0","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"types":"types/index.d.ts","dependencies":{},"devDependencies":{"@types/unist":"^2.0.0","browserify":"^16.0.0","dtslint":"^2.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","vfile":"^4.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.{js,ts}\" && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"f276c72deb7b468e3a291f8b516571ddb56b4d6d","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@3.0.0","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"shasum":"fc47181e49470aff24a1cac3f9b867428ced6ba2","size":3452,"noattachment":false,"key":"/vfile-location/-/vfile-location-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-3.0.0.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_3.0.0_1580160393715_0.40720047316018015"},"_hasShrinkwrap":false,"publish_time":1580160393951,"_cnpm_publish_time":1580160393951},"2.0.6":{"name":"vfile-location","version":"2.0.6","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","vfile":"^4.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"d0262408af6c830fd37374e21a7521211b6d9bbd","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@2.0.6","_nodeVersion":"13.0.1","_npmVersion":"6.13.0","dist":{"shasum":"8a274f39411b8719ea5728802e10d9e0dff1519e","size":3076,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.6.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.6.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_2.0.6_1573375330325_0.845393477305423"},"_hasShrinkwrap":false,"publish_time":1573375330479,"_cnpm_publish_time":1573375330479},"2.0.5":{"name":"vfile-location","version":"2.0.5","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","tinyify":"^2.0.0","vfile":"^4.0.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"0097b4036e8a22d2b87b33a815cdb0e7e5b6a2fd","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@2.0.5","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"c83eb02f8040228a8d2b3f10e485be3e3433e0a2","size":3042,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.5.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.5.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_2.0.5_1559216789388_0.4391849261164369"},"_hasShrinkwrap":false,"publish_time":1559216789748,"_cnpm_publish_time":1559216789748},"2.0.4":{"name":"vfile-location","version":"2.0.4","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{},"devDependencies":{"browserify":"^16.0.0","nyc":"^13.0.0","prettier":"^1.12.1","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.4.3","vfile":"^3.0.0","xo":"^0.23.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify . -s vfileLocation > vfile-location.js","build-mangle":"browserify . -s vfileLocation -p tinyify > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-var":"off","prefer-arrow-callback":"off","object-shorthand":"off"},"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"f18e5c0d037f0141898e3e52869b5dae8a6f2482","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@2.0.4","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"2a5e7297dd0d9e2da4381464d04acc6b834d3e55","size":2940,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.4.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.4.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_2.0.4_1542654558334_0.8709698168309239"},"_hasShrinkwrap":false,"publish_time":1542654558413,"_cnpm_publish_time":1542654558413},"2.0.3":{"name":"vfile-location","version":"2.0.3","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"dependencies":{},"files":["index.js"],"devDependencies":{"browserify":"^16.0.0","esmangle":"^1.0.1","nyc":"^11.0.0","prettier":"^1.12.1","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","vfile":"^2.0.0","xo":"^0.20.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.js --bare -s vfileLocation > vfile-location.js","build-mangle":"esmangle vfile-location.js > vfile-location.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-var":"off","prefer-arrow-callback":"off","object-shorthand":"off"},"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"faad01bfc2eef0356eadaaa142b90155aa97a359","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@2.0.3","_npmVersion":"6.0.0","_nodeVersion":"9.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"083ba80e50968e8d420be49dd1ea9a992131df77","size":2868,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.3.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.3.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location_2.0.3_1525377396851_0.9099513836651598"},"_hasShrinkwrap":false,"publish_time":1525377397011,"_cnpm_publish_time":1525377397011},"2.0.2":{"name":"vfile-location","version":"2.0.2","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/vfile/vfile-location.git"},"bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"dependencies":{},"files":["index.js"],"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.1","nyc":"^11.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.0.0","vfile":"^2.0.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s vfileLocation > vfile-location.js","build-mangle":"esmangle vfile-location.js > vfile-location.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"ignores":["vfile-location.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"15906d875603ff2c44bc9c8f12878214d7c68bb7","homepage":"https://github.com/vfile/vfile-location#readme","_id":"vfile-location@2.0.2","_shasum":"d3675c59c877498e492b4756ff65e4af1a752255","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"d3675c59c877498e492b4756ff65e4af1a752255","size":2593,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.2.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vfile-location-2.0.2.tgz_1500317792925_0.23454867862164974"},"directories":{},"publish_time":1500317793882,"_hasShrinkwrap":false,"_cnpm_publish_time":1500317793882},"2.0.1":{"name":"vfile-location","version":"2.0.1","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"repository":{"type":"git","url":"git+https://github.com/wooorm/vfile-location.git"},"bugs":{"url":"https://github.com/wooorm/vfile-location/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"dependencies":{},"files":["index.js"],"devDependencies":{"browserify":"^13.0.1","esmangle":"^1.0.1","nyc":"^8.1.0","remark-cli":"^1.0.0","remark-comment-config":"^4.0.0","remark-github":"^5.0.0","remark-lint":"^4.0.0","remark-validate-links":"^4.0.0","tape":"^4.0.0","vfile":"^2.0.0","xo":"^0.16.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s vfileLocation > vfile-location.js","build-mangle":"esmangle vfile-location.js > vfile-location.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"ignores":["vfile-location.js"]},"remarkConfig":{"output":true,"plugins":{"comment-config":null,"github":null,"lint":null,"validate-links":null},"settings":{"bullet":"*"}},"gitHead":"9d8a34f30c354c3e1f2599be1198e4b1e210912c","homepage":"https://github.com/wooorm/vfile-location#readme","_id":"vfile-location@2.0.1","_shasum":"0bf8816f732b0f8bd902a56fda4c62c8e935dc52","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"0bf8816f732b0f8bd902a56fda4c62c8e935dc52","size":2945,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.1.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/vfile-location-2.0.1.tgz_1471790088896_0.027401822851970792"},"directories":{},"publish_time":1471790090243,"_cnpm_publish_time":1471790090243,"_hasShrinkwrap":false},"2.0.0":{"name":"vfile-location","version":"2.0.0","description":"Convert between positions (line and column-based) and offsets (range-based) locations in a virtual file","license":"MIT","keywords":["remark","comment","message","marker","control"],"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/wooorm/vfile-location.git"},"bugs":{"url":"https://github.com/wooorm/vfile-location/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"dependencies":{},"devDependencies":{"browserify":"^13.0.0","eslint":"^1.0.0","esmangle":"^1.0.0","istanbul":"^0.4.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","remark":"^3.0.0","remark-comment-config":"^2.0.2","remark-github":"^4.0.0","remark-lint":"^2.0.2","remark-slug":"^4.0.0","remark-toc":"^2.0.1","remark-usage":"^2.1.0","remark-validate-links":"^2.0.2","remark-yaml-config":"^2.0.0","tape":"^4.0.0","vfile":"^1.3.1"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s vfileLocation > vfile-location.js","build-mangle":"esmangle vfile-location.js > vfile-location.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","test-api":"node test.js","test-coverage":"istanbul cover test.js","test":"npm run build && npm run lint && npm run test-coverage"},"gitHead":"0eb58322838ef856671d58945c2a858a2676f336","homepage":"https://github.com/wooorm/vfile-location#readme","_id":"vfile-location@2.0.0","_shasum":"7e34da6cc259cb4cc10963496e68878f0efae386","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"7e34da6cc259cb4cc10963496e68878f0efae386","size":3272,"noattachment":false,"key":"/vfile-location/-/vfile-location-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/vfile-location/download/vfile-location-2.0.0.tgz"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/vfile-location-2.0.0.tgz_1454838451842_0.7079255422577262"},"directories":{},"publish_time":1454838456068,"_cnpm_publish_time":1454838456068,"_hasShrinkwrap":false}},"readme":"# vfile-location\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[vfile][] utility to convert between positional (line and column-based) and\noffsets (range-based) locations.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`location(file)`](#locationfile)\n    *   [`Location`](#location)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a tiny but useful package to convert between arbitrary places in a\nfile.\n\n## When should I use this?\n\nThis utility is useful when ASTs nodes don’t cut it.\nFor example, when you are making a lint rule that looks for dangerous\ncharacters in a file, which you accomplish by searching the raw file value,\nand still want to report it to users.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+ and 16.0+), install with [npm][]:\n\n```sh\nnpm install vfile-location\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {location} from 'https://esm.sh/vfile-location@4'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {location} from 'https://esm.sh/vfile-location@4?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {VFile} from 'vfile'\nimport {location} from 'vfile-location'\n\nconst place = location(new VFile('foo\\nbar\\nbaz'))\n\nconst offset = place.toOffset({line: 3, column: 3}) // => 10\nplace.toPoint(offset) // => {line: 3, column: 3, offset: 10}\n```\n\n## API\n\nThis package exports the identifier [`location`][api-location].\nThere is no default export.\n\n### `location(file)`\n\nIndex the given document so you can translate between line/column and offset\nbased positional info.\n\n###### Parameters\n\n*   `file` (`string`, `Buffer`, or [`VFile`][vfile])\n    — file to index\n\n###### Returns\n\nAccessors for index ([`Location`][api-location-map]).\n\n### `Location`\n\nAccessors for index (TypeScript type).\n\n###### Fields\n\n*   `toPoint` (`(offset?: number) => Point`)\n    — get a line/column-based [`Point`][point] from `offset`\n*   `toOffset` (`(point?: Point) => number`)\n    — get an offset from a line/column-based [`point`][point]\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Location`][api-location-map].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with all maintained\nversions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nOur projects sometimes work with older versions, but this is not guaranteed.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`vfile/.github`][health] for ways to\nget started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/vfile/vfile-location/workflows/main/badge.svg\n\n[build]: https://github.com/vfile/vfile-location/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/vfile/vfile-location.svg\n\n[coverage]: https://codecov.io/github/vfile/vfile-location\n\n[downloads-badge]: https://img.shields.io/npm/dm/vfile-location.svg\n\n[downloads]: https://www.npmjs.com/package/vfile-location\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/vfile-location.svg\n\n[size]: https://bundlephobia.com/result?p=vfile-location\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/vfile/vfile/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[contributing]: https://github.com/vfile/.github/blob/main/contributing.md\n\n[support]: https://github.com/vfile/.github/blob/main/support.md\n\n[health]: https://github.com/vfile/.github\n\n[coc]: https://github.com/vfile/.github/blob/main/code-of-conduct.md\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[vfile]: https://github.com/vfile/vfile\n\n[point]: https://github.com/syntax-tree/unist#point\n\n[api-location]: #locationfile\n\n[api-location-map]: #location\n","_attachments":{},"homepage":"https://github.com/vfile/vfile-location#readme","bugs":{"url":"https://github.com/vfile/vfile-location/issues"},"license":"MIT"}