Gathering detailed insights and metrics for s-vuex-class
Gathering detailed insights and metrics for s-vuex-class
Gathering detailed insights and metrics for s-vuex-class
Gathering detailed insights and metrics for s-vuex-class
npm install s-vuex-class
Typescript
Module System
Node Version
NPM Version
TypeScript (85.02%)
JavaScript (14.98%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
39 Commits
1 Forks
3 Branches
1 Contributors
Updated on Mar 10, 2023
Latest Version
0.4.1
Package Id
s-vuex-class@0.4.1
Unpacked Size
16.08 kB
Size
4.37 kB
File Count
10
NPM Version
6.14.8
Node Version
14.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Binding helpers for Vuex and vue-class-component
1$ npm install --save vuex-class 2# or 3$ yarn add vuex-class
1import Vue from 'vue' 2import Component from 'vue-class-component' 3import { 4 State, 5 Getter, 6 Action, 7 Mutation, 8 namespace 9} from 'vuex-class' 10 11const someModule = namespace('path/to/module') 12 13@Component 14export class MyComp extends Vue { 15 @State('foo') stateFoo 16 @State(state => state.bar) stateBar 17 @Getter('foo') getterFoo 18 @Action('foo') actionFoo 19 @Mutation('foo') mutationFoo 20 @someModule.Getter('foo') moduleGetterFoo 21 22 // If the argument is omitted, use the property name 23 // for each state/getter/action/mutation type 24 @State foo 25 @Getter bar 26 @Action baz 27 @Mutation qux 28 29 created () { 30 this.stateFoo // -> store.state.foo 31 this.stateBar // -> store.state.bar 32 this.getterFoo // -> store.getters.foo 33 this.actionFoo({ value: true }) // -> store.dispatch('foo', { value: true }) 34 this.mutationFoo({ value: true }) // -> store.commit('foo', { value: true }) 35 this.moduleGetterFoo // -> store.getters['path/to/module/foo'] 36 } 37}
For general usage question which is not related to vuex-class should be posted to StackOverflow or other Q&A forum. Such questions will be closed without an answer.
Please make sure to provide minimal and self-contained reproduction when you report a bug. Otherwise the issue will be closed immediately.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
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
106 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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