1.0.1 • Published 6 years ago

redux-namespace-actions v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

redux-namespace-actions

Build Status Coverage Status Maintainability

Add a namespace to redux actions in order to have leaner names.

how to install

$ npm install --save redux-namespace-actions

how to use it

The goal of this package is to allow shorter and leaner names for redux actions in different files.

// file a.js

import namespace from "redux-namespace-actions"
// or var namespace = require("redux-namespace-actions")

const action = namespace("FIRST_NAMESPACE")

const ACTION_TYPE = action("ACTION_TYPE")

Using a name space, you will be able to define scoped action type constants and use them accross your project.

// file b.js

import namespace from "redux-namespace-actions"

const action = namespace("SECOND_NAMESPACE")

const ACTION_TYPE = action("ACTION_TYPE")
1.0.1

6 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago