{"library":"vue-demi","type":"library","category":null,"description":"Vue Demi (French for 'half') is a foundational utility library designed for authors building universal Vue libraries that must operate seamlessly across both Vue 2 and Vue 3 environments. It intelligently abstracts away the underlying Vue version, redirecting common Composition API imports (e.g., `ref`, `reactive`, `defineComponent`) to the appropriate Vue runtime (`vue@2` with `@vue/composition-api` or `vue@3`). The current stable version is `0.14.10`, with a consistent and active release cadence that focuses on compatibility fixes, minor feature enhancements, and addressing edge cases, often seeing several patch releases per month. Its key differentiator is providing a single, unified API surface for Composition API features and core Vue utilities, enabling developers to write code once and deploy it to both major Vue versions without needing conditional imports or complex build setups. It also exposes utilities like `isVue2` and `isVue3` for version-specific logic and a `Vue2` export for safely accessing global Vue 2 APIs (e.g., `Vue.config`, `Vue.set`).","language":"javascript","status":"active","version":"0.14.10","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-demi","imports":["import { ref, reactive, defineComponent } from 'vue-demi'","import { isVue2, isVue3, version } from 'vue-demi'","import { Vue2 } from 'vue-demi'","import { install } from 'vue-demi'"]},{"cmd":"yarn add vue-demi","imports":[]},{"cmd":"pnpm add vue-demi","imports":[]}],"homepage":"https://vue-demi.netlify.app","github":"https://github.com/antfu/vue-demi","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-demi","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-demi/compatibility"}}