vfile-location
JSON →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.
Traffic · last 30 days ↓60% vs prev 7d
top countries 🇺🇸 United States · 🇫🇷 France · 🇳🇴 Norway · 🇨🇦 Canada · 🇩🇪 Germany