1.0.11 • Published 6 years ago

fv-store v1.0.11

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

FV Store

Fast and simple key = value storage

Installation

npm install --save fv-store

Usage

import Store from "fv-store";

Store.set({
    user: {
        firstName: 'James',
        lastName: 'Craig'
    }
});

console.log(Store.get('user.firstName', 'defaultValue'));

Subscriptions

Subscriptions are a way of listening for events on the store.

const subscription = Store.subscribe('update', store => {
    console.log(store);
});

// If you are running a single page application, make sure you unsubscribe
// from an event when you are finished with it.
Store.unsubscribe(subscription);
1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago