{"library":"vfile-location","type":"library","category":null,"description":"vfile-location is a utility package within the unified ecosystem, currently at stable version 5.0.3, designed to convert between positional (line and column-based) and offset (character index-based) locations within a vfile instance. It provides `toOffset` and `toPoint` methods for accurate translation. The package sees active development and frequent, minor releases, with major versions typically introducing breaking changes like the move to ESM-only and Node.js 16+ requirement in v5. A key differentiator is its tight integration with `vfile`, making it ideal for tasks like generating precise linting reports or manipulating text based on raw file content where traditional AST node locations might be insufficient for location tracking.","language":"javascript","status":"active","version":"5.0.3","tags":["javascript","vfile","vfile-util","util","utility","virtual","file","location","point","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vfile-location","imports":["import { location } from 'vfile-location'","import type { Location } from 'vfile-location'","import { VFile } from 'vfile'"]},{"cmd":"yarn add vfile-location","imports":[]},{"cmd":"pnpm add vfile-location","imports":[]}],"homepage":null,"github":"https://github.com/vfile/vfile-location","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vfile-location","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vfile-location/compatibility"}}