state-storage

0.0.2 • Public • Published

state-storage

Build Status

A localStorage api for state management in React

Installation

npm install state-storage --save

Usage

Find the example here.

API

set_plain(key, state)

Sets the current state with a key in Local Storage.

get_plain(key)

Returns the current state.

set_JSON(key, state)

Stores the JSON data.

get_JSON(key)

Parses and returns the state.

Tests

npm run test

Contributing

Add unit tests for any new or changed functionality

License

ISC

Dependents (0)

Package Sidebar

Install

npm i state-storage

Weekly Downloads

0

Version

0.0.2

License

ISC

Last publish

Collaborators

  • nitin42