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
- Maintenance status: The source appears quiet/dormant. The most recent upstream push and the newest listed package update are from 2023-11-07, and there have been no updates shown since then (relative to today, 2026-06-09).
- Update cadence: The updates are infrequent and clustered around earlier years (notably 2021-11 and then 2023-11), with a multi-year gap between 2016-era updates and the 2021 releases, and again between 2021 and 2023. No evidence of a regular cadence after 2023-11.
AI summary generated
Recent updates
v2.0.4
Release 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
v2.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
Release 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.
v2.0.1
Release v2.0.1 contains a packaging fix related to the package exports entry in package.json. The change updates the exports path so consumers resolve the correct built module file.
v2.0.0
Version 2.0.0 release notes contain only publishing/workflow-related information. The only explicitly stated change is a breaking change to how a footer directive must be placed to allow publishing a major update.
Breakingv1.2.0
Release v1.2.0 is minimal in the provided notes and mentions a single change labeled "publish 2.0". No API, migration, bug fix, security, or performance details are included, so upgrade impact cannot be determined from the release text alone.
Featuresv1.1.7
Release v1.1.7 contains only a single documented change in the release notes, a fix described as “trigger publish”. The actual code diff for this release is much broader, including changes to the library’s exported API surface (default export removal), package publishing entrypoints, and the project’s build and test toolchain.
Breakingv1.1.6
Release v1.1.6 is described as a small bug fix related to referencing built distribution files. The actual diff shows a much larger migration from Flow-based JS to a TypeScript build, with changes to the published entry points and typing artifacts.
BreakingFeaturesv1.1.5
Release v1.1.5 is a small change focused on Flow-related build/type annotation fixes. The diff adds Flow pragmas and updates the Flow declaration module export shape, and also adjusts the package.json Flow check command.
v1.1.4
v1.1.4 is a build-focused change that ensures Flow type information is included in the published dist output. The release notes describe copying Flow type metadata into dist, and the code diff shows the build script was updated to perform that copy.