redux-update-time
v1.0.1
Published
A lightweight middleware of redux for logging the store update time difference in milliseconds ( upto 12 decimal places precesion) on console from an action
Downloads
2
Maintainers
Readme
A lightweight middleware of redux for logging the store update time difference in milliseconds ( upto 12 decimal places precesion) on console from an action
Console View
Prerequisites
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
Table of contents
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Installation
BEFORE YOU INSTALL: please read the prerequisites
Start with cloning this repo on your local machine:
$ git clone https://github.com/alii13/redux-update-time.git
$ cd redux-update-time
To install and set up the library, run:
$ npm install --save-dev redux-update-time
Or if you prefer using Yarn:
$ yarn add --dev redux-update-time
Usage
Example
import { applyMiddleware, createStore } from 'redux';
// Logger with default options
import reduxTime from 'redux-update-time'
const store = createStore(
reducer,
applyMiddleware(reduxTime)
)
// Note passing middleware as the third argument requires redux@>=3.1.0
Running the tests
$ npm test
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :sunglasses:
Authors
- Shekh Aliul - Initial work - Shekh Aliul
See also the list of contributors who participated in this project.
License
MIT License © Shekh Aliul