New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

redux-storage-engine-electron-store

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-storage-engine-electron-store

electron-store engine for redux-storage

latest
Source
npmnpm
Version
4.0.1
Version published
Maintainers
1
Created
Source

redux-storage-engine-electron-store

electron-store based engine for redux-storage.

Installation

npm install --save redux-storage-engine-electron-store

Usage

Simply invoke the function exported from this module to persist the Redux state store in the default store created by redux-storage.

import createEngine from 'redux-storage-engine-electron-store';
const engine = createEngine();

The function accepts an optional options argument with the following keys:

  • store: a custom redux-storage store to use instead of the default one, or an object that is passed directly to the constructor of Store in redux-storage in order to construct a new store.

  • key: an optional key under which the state will be stored in the store object. When undefined, the entire store will be used to store the Redux state.

For instance, to persist the Redux store into a file named state.json under the key named reduxStore:

import createEngine from 'redux-storage-engine-electron-store';
const engine = createEngine({
  key: 'reduxStore',
  store: {
    name: 'reduxStore'
  }
});

Keywords

redux

FAQs

Package last updated on 27 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts