https://github.com/codewell/state-logger
State logger for JavaScript states Redux-style
https://github.com/codewell/state-logger
Last synced: 10 months ago
JSON representation
State logger for JavaScript states Redux-style
- Host: GitHub
- URL: https://github.com/codewell/state-logger
- Owner: codewell
- License: mit
- Created: 2019-09-13T15:31:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T05:24:56.000Z (over 3 years ago)
- Last Synced: 2025-07-16T05:25:07.309Z (11 months ago)
- Language: JavaScript
- Size: 868 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @codewell/state-logger
State logger for JavaScript states Redux-style
## Installation
```
npm install @codewell/state-logger
```
## Basic usage
```JavaScript
import stateLogger from '@codewell/state-logger';
const state = {};
const action = {type, payload};
const nextState = getNextState(state, action); // Somehow
stateLogger(state, action, nextState); // Will log the state in nice colors
```