Gathering detailed insights and metrics for vuex-class
Gathering detailed insights and metrics for vuex-class
Gathering detailed insights and metrics for vuex-class
Gathering detailed insights and metrics for vuex-class
vuex-module-decorators
Decorators to make class-like Vuex modules
vuex-class-modules
Typescript class decorators for class-style vuex modules.
vuex-class-component
"A Type Safe Vuex Module or Store Using ES6 Classes and ES7 Decorators written in TypeScript."
s-vuex-class
Binding helpers for Vuex and vue-class-component
npm install 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
1,725 Stars
39 Commits
85 Forks
17 Watchers
3 Branches
3 Contributors
Updated on Apr 11, 2025
Latest Version
0.3.2
Package Id
vuex-class@0.3.2
Size
4.58 kB
NPM Version
6.8.0
Node Version
8.12.0
Published on
Mar 15, 2019
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
project is archived
Details
Reason
Found 2/26 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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
106 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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