{"library":"unist-util-position","type":"library","category":null,"description":"unist-util-position is a crucial utility within the unified (unist) ecosystem, designed to robustly extract positional information from Unist (Universal Syntax Tree) nodes. This includes `start` and `end` points, along with `line`, `column`, and `offset` details. It's particularly valuable when processing trees that might have inconsistent or incomplete positional data due to user modifications or external plugins, acting as a safeguard against malformed data. The current stable version is 5.0.0, which mandates Node.js 16 or newer and operates exclusively as an ES module. New major versions are typically released to align with Node.js EOL policies and introduce significant breaking changes, while minor releases provide features and fixes. Its key differentiator is its focus on providing reliable positional data, returning `undefined` for invalid inputs rather than potentially throwing errors or returning partial, incorrect data, making it safer for robust plugin development compared to directly accessing `node.position` properties.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","unist","unist-util","util","utility","node","position","point","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-util-position","imports":["import { position } from 'unist-util-position'","import { pointStart } from 'unist-util-position'","import { pointEnd } from 'unist-util-position'"]},{"cmd":"yarn add unist-util-position","imports":[]},{"cmd":"pnpm add unist-util-position","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/unist-util-position","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-util-position","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/unist-util-position/compatibility"}}