A small unifiedjs utility that pretty prints the positional info (line and column, or start to end) from a UNIST node, position object, or point. It outputs a standard human-readable string that’s useful for showing where something occurred in an original document, such as in error or warning messages.
Project status
- Maintenance status: Quiet or maintenance-mode, no upstream push since 2023-07-07 (today is 2026-06-09), so it appears to be largely dormant rather than actively maintained.
- Update cadence: Updates are sparse, with notable gaps (for example, 4.0.0 in 2023, then earlier changes in 2023-01, 2022, and 2021), suggesting a low-frequency release pattern.
AI summary generated
Recent updates
4.0.0
unist-util-stringify-position v4.0.0 is a major release that targets Node.js 16+ and switches package entry resolution to use an exports map. It also updates the @types/unist dependency to the v3 typings line.
Breaking3.0.3
Release 3.0.3 is primarily described as misc work (docs, code-style refactor, and tsconfig updates). The actual diff shows a larger internal restructuring: the implementation moved into a new lib/ folder with index.js converted to a re-export, along with changes to build, test, and CI tooling.
Breaking3.0.2
Release 3.0.2 is a small update focused on TypeScript type definitions. The code change adjusts JSDoc typedefs and the accepted input types for `stringifyPosition`, and adds a dev type dependency to validate the fix.
3.0.1
Release 3.0.1 is a small update focused on TypeScript typing and documentation improvements. The code changes mainly adjust the `stringifyPosition` input typing and how the function detects unist-like nodes versus position/point objects.
3.0.0
Release 3.0.0 converts the package to ESM, adds/updates JSDoc-driven TypeScript types, and refactors the implementation (notably around distribution/build setup). The release notes only mention these high-level items, but the diff shows multiple public API and distribution changes beyond what is documented.
Breaking2.0.3
Release 2.0.3 is described in the release notes as a prose refactor only. The diff shows no application runtime code changes, but it does include documentation edits plus changes to test linting and development tooling versions.
2.0.2
Release 2.0.2 primarily updates package metadata by adding a `funding` field to `package.json`. It also bumps several development tooling dependencies (TypeScript test and linting, remark tooling) without describing those changes in the release notes.
Features2.0.1
Release 2.0.1 appears to be primarily documentation and tooling related: the readme is reformatted and expanded with additional badges and a related-projects section. The runtime code change in index.js is only comment style, so the published stringify behavior should remain the same.
Features2.0.0
Version 2.0.0 introduces TypeScript type definitions for this package and changes the return value when the input is not a valid Unist node, position, or point. Instead of returning null, the implementation now returns an empty string.
BreakingFeatures1.1.2
Release 1.1.2 primarily performs a small refactor/cleanup and updates the README wording around Unist positional terminology. The runtime logic in index.js still stringifies nodes/position-like objects into the same line/column range formats, but the internal helper function names and the documented parameter names (location -> position, position -> point) have been shifted.