{"library":"vue-scriptx","type":"library","category":null,"description":"VueScriptX is a small, focused Vue 3 plugin that facilitates asynchronous loading and execution of external JavaScript files and inline scripts directly within Vue components using a custom `<scriptx>` component or a global `$scriptx` property. It aims to reintroduce the familiar `<script>` tag behavior in a Vue-compatible way, inspired by `vue-script2`. The current stable version is 0.2.7, with an informal release cadence indicated by recent minor updates. Key differentiators include its declarative `<scriptx>` component for both ordered and asynchronous execution, support for unloading scripts when components unmount, and full TypeScript compatibility for Vue 3 projects, offering a straightforward and robust approach to managing third-party scripts in Single Page Applications (SPAs). It emphasizes a simple, web-standards-familiar approach to script injection.","language":"javascript","status":"active","version":"0.2.7","tags":["javascript","vue3","script","injection","asynchronous","async","loading","loader","load","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-scriptx","imports":["import ScriptX from 'vue-scriptx';","declare module 'vue' {\n  interface ComponentCustomProperties {\n    $scriptx: typeof import('vue-scriptx').ScriptXService;\n  }\n}","<scriptx src=\"https://example.com/script.js\"></scriptx>"]},{"cmd":"yarn add vue-scriptx","imports":[]},{"cmd":"pnpm add vue-scriptx","imports":[]}],"homepage":null,"github":"https://github.com/iann838/vue-scriptx","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-scriptx","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-scriptx/compatibility"}}