1.0.1 • Published 3 years ago

redux-update-time v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

code style: prettier

redux-update-time

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

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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Add your changes: git add .
  4. Commit your changes: git commit -am 'Add some feature'
  5. Push to the branch: git push origin my-new-feature
  6. Submit a pull request :sunglasses:

Authors

See also the list of contributors who participated in this project.

License

MIT License © Shekh Aliul