Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/chrome-store
tiny wrapper around chrome.storage
https://github.com/segment-boneyard/chrome-store
Last synced: about 7 hours ago
JSON representation
tiny wrapper around chrome.storage
- Host: GitHub
- URL: https://github.com/segment-boneyard/chrome-store
- Owner: segment-boneyard
- Created: 2014-02-16T00:14:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-14T10:22:46.000Z (over 10 years ago)
- Last Synced: 2024-04-09T16:31:02.438Z (7 months ago)
- Language: JavaScript
- Size: 143 KB
- Stars: 4
- Watchers: 41
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# chrome-store
tiny wrapper around chrome.storage
## Installation
Install with [component(1)](http://component.io):
$ component install segmentio/chrome-store
## Example
```js
var store = require('chrome-store')('sync');// single
store.set('a', 1, function(err){
if (err) throw err;
store.get('a', function(err, value){
if (err) throw err;
assert(1 == value);
});
});// multi
store
.set('a', 1)
.set('b', 2)
.set('c', 3)
.end(function(err){});store
.get('a')
.get('b')
.get('c')
.end(function(err, obj){
assert(1 == obj.a);
assert(2 == obj.b);
assert(3 == obj.c);
});
```## License
MIT