Skip to content

stores strings or key-value pairs on disk and in memory, get notified when new items are added

Notifications You must be signed in to change notification settings

Ivokato/dumbstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dumbstore: a quick and easy way to store data (strings for now) and retrieve them across app resets. usage:


var myStringStore = dumbStores.getStore('StringStore', 'myStringStore');

myStringStore.subscribe( console.log.bind( console, 'myStringStore contents:' ) );

myStringStore.add( 'foo' );

//myStringStore contents: ['foo']

var myKeyValueStore = dumbStores.getStore('KeyValueStore', 'myKeyValueStore');

myKeyValueStore.subscribe( console.log.bind( console, 'myKeyValueStore contents:' ) );

myKeyValueStore.add( 'foo', 'bar' );

//myKeyValueStore contents: { foo: 'bar' }

About

stores strings or key-value pairs on disk and in memory, get notified when new items are added

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published