{"library":"unist-util-source","type":"library","category":null,"description":"unist-util-source is a focused utility in the unified ecosystem designed to extract the original source code corresponding to a `unist` node or a specific position within a `VFile`. It is currently stable at version 5.0.0 and follows the unified collective's release cadence, which typically aligns major versions with Node.js LTS releases. Key differentiators include its tight integration with the `unist` specification and `vfile` for reliable positional data, its minimal API surface, and its commitment to modern JavaScript practices like being ESM-only and fully typed with TypeScript. It serves as a foundational building block for tools that need to represent parts of a parsed document back in their original textual form, such as linters, code formatters, or rich text editors displaying snippets.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","unist","unist-util","util","utility","node","position","source","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-util-source","imports":["import { source } from 'unist-util-source'","import { source } from 'https://esm.sh/unist-util-source@5'"]},{"cmd":"yarn add unist-util-source","imports":[]},{"cmd":"pnpm add unist-util-source","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/unist-util-source","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-util-source","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-source/compatibility"}}