vfile-location

JSON →
library 5.0.3 ·javascript
verified May 27, 2026

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.

total hits 10
actors 5 distinct systems
last hit 5d ago MJ12bot
GPTBot
5
Script
1
Search engines
1

top countries 🇺🇸 United States · 🇫🇷 France · 🇳🇴 Norway · 🇨🇦 Canada · 🇩🇪 Germany