# redux-devtools-prompt-state

> A redux devtools utility to prompt / copy / paste state of an app

Latest version **0.0.4** (published 2015-12-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install redux-devtools-prompt-state
pnpm add redux-devtools-prompt-state
yarn add redux-devtools-prompt-state
bun add redux-devtools-prompt-state
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-12-14 |
| First published | 2015-12-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Pierrickouw |
| Maintainers | pierrickouw |
| Keywords | redux, react |

## Links

- npm: https://www.npmjs.com/package/redux-devtools-prompt-state
- Repository: https://github.com/Pierrickouw/redux-devtools-prompt-state
- Homepage: https://github.com/Pierrickouw/redux-devtools-prompt-state#readme
- Issues: https://github.com/Pierrickouw/redux-devtools-prompt-state/issues
- npm.io page: https://npm.io/package/redux-devtools-prompt-state

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2015-12-14
- 0.0.3 — 2015-12-14
- 0.0.2 — 2015-12-14
- 0.0.1 — 2015-12-14

## README

## redux-devtools-prompt-state

This is a small module to debug redux app.
After the setup, just press `shift+s` by default to see a prompt of your current state.
You can save it for later use, or replace it with another one.

<img width="400" src="http://pierrickouw.org/images/screenredux.gif"/>

### Setup
`npm i --save-dev redux-devtools-prompt-state`

Be careful to only put this in dev - use a flag in your build! (or be aware in prod)

Create your store with the `replaceState` enhancers
``` javascript
import { createStore, compose } from 'redux'
import rootReducer from '../reducers'
import { replaceState, replacer } from 'redux-devtools-prompt-state';

function configureStore(initialState)
{
  const createWithReplaceState = compose(replaceState())(createStore); // replaceState can take an array of key sequence
  const store = createWithReplaceState(rootReducer, initialState);
  replacer(store, [ 'shift+k' ]); // replacer for dom - could be extended in the future

  return store
}
```

#### `replaceState`

`replacer(store, keys)` takes an array of key sequences as second argument as defined [here](https://craig.is/killing/mice)

---
_Source: https://npm.io/package/redux-devtools-prompt-state · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
