{"library":"vue-global-api","type":"library","category":null,"description":"vue-global-api is a utility package for Vue 3 that makes Composition API functions globally available within `<script setup>` contexts, removing the need for explicit imports of `ref`, `computed`, `watch`, and other common APIs from 'vue'. This aims to reduce boilerplate and streamline the development experience, aligning with the macro-like availability of `defineProps` and `defineEmits`. The current stable version is `0.4.1`, and it's maintained by Anthony Fu, a prominent Vue core team member. While Vue itself doesn't have a fixed release cycle for minor versions (typically 3-6 months), this package tends to follow its development. Key differentiators include its granular control over which APIs are global via sub-module imports (e.g., `vue-global-api/ref` or `vue-global-api/reactivity`), and its specific ESLint configuration to prevent 'no-undef' errors. It is designed for bundler-based Vue applications and offers an alternative to importing APIs from 'vue' in every single-file component.","language":"javascript","status":"active","version":"0.4.1","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-global-api","imports":["import 'vue-global-api'","import 'vue-global-api/ref'","import 'vue-global-api/reactivity'"]},{"cmd":"yarn add vue-global-api","imports":[]},{"cmd":"pnpm add vue-global-api","imports":[]}],"homepage":null,"github":"https://github.com/antfu/vue-global-api","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-global-api","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-global-api/compatibility"}}