Gathering detailed insights and metrics for redux-action-types-creator
Gathering detailed insights and metrics for redux-action-types-creator
Gathering detailed insights and metrics for redux-action-types-creator
Gathering detailed insights and metrics for redux-action-types-creator
A simple lib help you define redux action type in easy way.
npm install redux-action-types-creator
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
10 Stars
3 Commits
2 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Sep 26, 2018
Latest Version
1.2.0
Package Id
redux-action-types-creator@1.2.0
Size
2.97 kB
NPM Version
4.1.2
Node Version
7.7.3
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
1
5
A simple lib help your define redux action type
in easy way.
yarn add redux-action-types-creator
Or
npm install redux-action-types-creator --save
1 import actionTypeCreator, { SYNC, ASYNC } from 'redux-action-types-creator' 2 3 const actionType = actionTypeCreator('APP') 4 5 const TODO_TYPES = actionType({ 6 TODO: { 7 CREATE: SYNC, 8 UPDATE: SYNC, 9 FETCH: ASYNC, 10 USER: { 11 FETCH: ASYNC, 12 DELETE: SYNC, 13 } 14 } 15 }) 16 17 /** 18 19 { 20 TODO: { 21 CREATE: '@@APP/TODO/CREATE', 22 UPDATE: '@@APP/TODO/UPDATE', 23 FETCH: { 24 START: '@@APP/TODO/FETCH/REQUEST', 25 SUCCESS: '@@APP/TODO/FETCH/SUCCESS', 26 FAIL: '@@APP/TODO/FETCH/FAILURE', 27 ALL: [ 28 '@@APP/TODO/FETCH/REQUEST', 29 '@@APP/TODO/FETCH/SUCCESS', 30 '@@APP/TODO/FETCH/FAILURE', 31 ] 32 }, 33 USER: { 34 FETCH: { 35 START: '@@APP/TODO/USER/FETCH/REQUEST', 36 SUCCESS: '@@APP/TODO/USER/FETCH/SUCCESS', 37 FAIL: '@@APP/TODO/USER/FETCH/FAILURE', 38 ALL: [ 39 '@@APP/TODO/USER/FETCH/REQUEST', 40 '@@APP/TODO/USER/FETCH/SUCCESS', 41 '@@APP/TODO/USER/FETCH/FAILURE', 42 ] 43 }, 44 DELETE: '@@APP/TODO/USER/DELETE', 45 } 46 } 47 } 48 49 */ 50 51 // now you can access type like: 52 53 console.log(TODO_TYPES.TODO.CREATE) // '@@APP/TODO/CREATE' 54 console.log(TODO_TYPES.TODO.FETCH.ALL) // access all async types in easy way 55 /* 56 [ 57 '@@APP/TODO/FETCH/REQUEST', 58 '@@APP/TODO/FETCH/SUCCESS', 59 '@@APP/TODO/FETCH/FAILURE', 60 ] 61 */
SYNC: generate a single normal type.
ASYNC: generate three types for async operation.
You can define your own async types suffix by:
1 actionTypeCreator('namespace', { 2 asyncSuffix: [ 3 'START', 'SUCCESS', 'FAIL', // default value is: ['REQUEST', 'SUCCESS', 'FAILURE'] 4 ] 5 })
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/3 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 effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
48 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