All Projects → andrew--r → Astorage

andrew--r / Astorage

A tiny API wrapper for localStorage

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Astorage

Theme Builder
The theming system helps you in building a theme of your choice and apply it to test live. Why wait? Just give it a try.
Stars: ✭ 82 (-20.39%)
Mutual labels:  localstorage
Shopping App With Cart Flutter Demo
Shopping cart : uses sqlite for storage
Stars: ✭ 93 (-9.71%)
Mutual labels:  localstorage
Pymba
Python wrapper for Allied Vision's Vimba C API
Stars: ✭ 98 (-4.85%)
Mutual labels:  api-wrapper
Jsql
jSQL is the "official" Javascript Query Language - A database written in Javascript for use in a browser or Node.
Stars: ✭ 85 (-17.48%)
Mutual labels:  localstorage
Gistr
Interact with GitHub gists from R
Stars: ✭ 90 (-12.62%)
Mutual labels:  api-wrapper
Vue Preferences
The coolest and easiest way to manage your user's preferences on the client side with your preferred storage. Check out sample app here:
Stars: ✭ 96 (-6.8%)
Mutual labels:  localstorage
Vue Mail List
vue全家桶+localStorage实现一个简易的通讯录
Stars: ✭ 81 (-21.36%)
Mutual labels:  localstorage
Rorcid
A programmatic interface the Orcid.org API
Stars: ✭ 101 (-1.94%)
Mutual labels:  api-wrapper
Ckanr
R client for the CKAN API
Stars: ✭ 91 (-11.65%)
Mutual labels:  api-wrapper
Nuxt Storage
🛢 Utilities for easy read and write browser's storage in Nuxt.js project
Stars: ✭ 98 (-4.85%)
Mutual labels:  localstorage
Roam Research Private Api
Private API to enable API access for Roam Research. Now you can connect Roam to your other projects.
Stars: ✭ 88 (-14.56%)
Mutual labels:  api-wrapper
Mediawiki
MediaWiki API wrapper in python http://pymediawiki.readthedocs.io/en/latest/
Stars: ✭ 89 (-13.59%)
Mutual labels:  api-wrapper
Retrospectify
An awesome tool for retrospecting, written in Vue
Stars: ✭ 97 (-5.83%)
Mutual labels:  localstorage
Go Binance
Golang wrapper for Binance API
Stars: ✭ 85 (-17.48%)
Mutual labels:  api-wrapper
Vlf
A Vue plugin from localForage.vue-localForage or vlf
Stars: ✭ 99 (-3.88%)
Mutual labels:  localstorage
Cryptocompy
Simple Python 3 wrapper for the public CryptoCompare API.
Stars: ✭ 81 (-21.36%)
Mutual labels:  api-wrapper
Discord.jl
The Julia Discord API Wrapper
Stars: ✭ 93 (-9.71%)
Mutual labels:  api-wrapper
Binancedotnet
Official C# Wrapper for the Binance exchange API, with REST and WebSocket endpoints
Stars: ✭ 102 (-0.97%)
Mutual labels:  api-wrapper
Instagram api gem
A Ruby wrapper for the Instagram API
Stars: ✭ 100 (-2.91%)
Mutual labels:  api-wrapper
Bluelinky
An unofficial nodejs API wrapper for Hyundai bluelink
Stars: ✭ 94 (-8.74%)
Mutual labels:  api-wrapper

ASTORAGE

A tiny API wrapper for localStorage that lets you safely save numbers, arrays, objects and other data types.

Installation

Astorage is available via npm or bower.

npm install astorage

or

bower install astorage

Otherwise you can directly download zip.

Usage and API

// define some data
var users = [
  {
    name: 'John Doe',
    age: 21
  },
  {
    name: 'Alex Smith',
    age: 35
  }
];

// save data into localStorage.
// API: astorage.set(key, value)
// key — string
// value — string, number, array, object or anything else
astorage.set('users', users); 

// get value from localStorage by key.
// API: astorage.get(key)
// key — string
astorage.get('users');
> [{name: 'John Doe', age: 21}, {name: 'Alex Smith', age: 35}]

// remove item from localStorage
astorage.remove('users');

// or empty localStorage
astorage.clear();

// get localStorage items count
astorage.length
> 0

LICENSE

Released under the MIT license.

The MIT License (MIT)

Copyright © 2015 Andrew Romanov, Kiril Osiyuk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].