{"library":"vue-sfc-parser","type":"library","category":null,"description":"vue-sfc-parser is a utility library for parsing Vue.js Single File Components (SFCs) specifically designed for static analysis workflows. It provides a structured representation of an SFC, similar to `vue-template-compiler`'s `parseComponent` function, but enhances it with additional helper methods on `SFCBlock` objects, such as `calcGlobalOffset` and `calcGlobalRange`, to facilitate mapping block-specific positions back to the overall file position. Currently at version 0.1.2, the library also includes a `createDiffWatcher` API for efficiently detecting changes within individual SFC blocks, enabling sophisticated hot-reloading or analysis tools. Its release cadence is ad-hoc, reflecting its early development stage. A key differentiator is its focus on providing precise positional data and change detection, which is crucial for linters, language servers, and build tools that operate on Vue SFCs.","language":"javascript","status":"active","version":"0.1.2","tags":["javascript","Vue.js","component","parser","single file component","static analysis","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-sfc-parser","imports":["import { parseComponent } from 'vue-sfc-parser'","import { createDiffWatcher } from 'vue-sfc-parser'","import type { SFCDescriptor } from 'vue-sfc-parser'"]},{"cmd":"yarn add vue-sfc-parser","imports":[]},{"cmd":"pnpm add vue-sfc-parser","imports":[]}],"homepage":null,"github":"https://github.com/ktsn/vue-sfc-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-sfc-parser","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/vue-sfc-parser/compatibility"}}