
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
vue2-helpers
Advanced tools
A util package to use Vue 2 with Composition API easily.
NOTE:
- vue2-helpers@1 is for vue2.5 and 2.6
- vue2-helpers@2 is for vue2.7
npm i -S vue2-helpers
import { createVuexHelpers } from 'vue2-helpers';
import { useRouter } from 'vue2-helpers/vue-router';
const { useState } = createVuexHelpers<
RootState, RootGetters, RootMutations, RootActions
>();
// Get a reactive and mutable ref object "stateA"
const { stateA } = useState('module', ['stateA']);
const router = useRouter();
router.push('/login');
| Features | Description |
|---|---|
createVuexHelpers<RootState, RootGetters, RootMutations, RootActions >(): { useState, useGetters, useMutations, useActions} | The helper methods in return value are used to replace mapState, mapGetters,mapMutations, mapActions |
| Features | Description |
|---|---|
createStore<S>(options: StoreOptions<S>): Store<S> | |
useStore<S = any>(): Store<S> |
| Features | Description |
|---|---|
createRouter(options: RouterOptions): Router | |
onBeforeRouteLeave(leaveGuard: NavigationGuard): void | |
onBeforeRouteUpdate(updateGuard: NavigationGuard): void | |
useRoute(): RouteLocationNormalized | |
useRouter(): Router | |
router.isReady(): Promise<void> |
FAQs
A util package to use Vue 2 with Composition API easily
The npm package vue2-helpers receives a total of 598 weekly downloads. As such, vue2-helpers popularity was classified as not popular.
We found that vue2-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.