Provides a small mapping utility between text positions expressed as line and column numbers and character offsets in a string. Useful for parsers and other text processors that need to translate between character ranges and human-friendly line/column locations.
Project status
- Active maintenance: The most recent evidence is an update (v2.0.4) on 2023-11-07, after earlier updates in 2021, which suggests maintenance has been intermittent rather than continuous.
- Update cadence: Update activity appears infrequent, with multi-year gaps between v2.0.2 (2021-11-20), v2.0.3 (2021-11-23), and v2.0.4 (2023-11-07).
AI summary generated Today
Recent updates
v2.0.4
11/7/2023Release v2.0.4 updates the npm package manifest to improve TypeScript type resolution. Specifically, it adds an explicit `types` entry under the `exports` map in `package.json`.
v2.0.3
11/23/2021v2.0.3 is a small patch release focused on reducing internal memory usage by not storing the original input string in the `LinesAndColumns` class. The change replaces the stored string with a cached `length` value and adjusts internal offset storage types.
v2.0.2
11/20/2021Release v2.0.2 is described as a bug fix to make the module compatible with both ES module import and CommonJS require. The code changes in package.json show a more involved switch to conditional exports and dual ESM/CJS build outputs.