Gathering detailed insights and metrics for vuex-router-sync-fullpath
Gathering detailed insights and metrics for vuex-router-sync-fullpath
Gathering detailed insights and metrics for vuex-router-sync-fullpath
Gathering detailed insights and metrics for vuex-router-sync-fullpath
npm install vuex-router-sync-fullpath
Typescript
Module System
Node Version
NPM Version
49
Supply Chain
76.6
Quality
74.9
Maintenance
50
Vulnerability
99.6
License
JavaScript (92.94%)
TypeScript (7.06%)
Total Downloads
2,051
Last Day
3
Last Week
4
Last Month
7
Last Year
86
MIT License
1 Stars
61 Commits
2 Watchers
1 Branches
15 Contributors
Updated on Sep 09, 2023
Minified
Minified + Gzipped
Latest Version
5.0.1
Package Id
vuex-router-sync-fullpath@5.0.1
Unpacked Size
5.28 kB
Size
2.55 kB
File Count
5
NPM Version
6.4.1
Node Version
10.10.0
Cumulative downloads
Total Downloads
Last Day
0%
3
Compared to previous day
Last Week
300%
4
Compared to previous week
Last Month
-30%
7
Compared to previous month
Last Year
19.4%
86
Compared to previous year
2
6
Sync vue-router's current $route.fullPath as part of vuex store's state. This package differs from the original vue-router-sync because it not uses cyclic objects.
1# the latest version works only with vue-router >= 2.0 2npm install vuex-router-sync-fullpath
1import { sync } from 'vuex-router-sync-fullpath' 2import store from './vuex/store' // vuex store instance 3import router from './router' // vue-router instance 4 5const unsync = sync(store, router) // done. Returns an unsync callback fn 6 7// bootstrap your app... 8 9// During app/Vue teardown (e.g., you only use Vue.js in a portion of your app and you 10// navigate away from that portion and want to release/destroy Vue components/resources) 11unsync() // Unsyncs store from router
You can optionally set a custom vuex module name:
1sync(store, router, { moduleName: 'RouteModule' } )
It adds a route
module into the store, which contains the state representing the current route:
1store.state.route.fullPath
When the router navigates to a new route, the store's state is updated.
store.state.route
is immutable, because it is derived state from the URL, which is the source of truth. You should not attempt to trigger navigations by mutating the route object. Instead, just call $router.push()
or $router.go()
. Note that you can do $router.push({ query: {...}})
to update the query string on the current path.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
77 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More