Nutella Peanut-Butter Marshmallow

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

This package has been deprecated

Author message:

see deep-jstorage

deep-local-storage

0.3.3 • Public • Published

deep-local-storage

local storage driver (store) for deepjs (based on jstorage)

install

bower install deep-local-storage

You should also have jstorage loaded in your page.

Collection store Usage

var deep = require("deepjs/deep");
require("deep-local-storage/index");
require("deep-restful/index");
 
deep.jstorage.collection("myprotocol");
 
deep.restful("myprotocol")
.post({ hello:"world" })
.get()
.log();
 
deep("myprotocol::?hello=world").log();
 
deep.restful("myprotocol")
.put({ id:'test', myVar:"hello", myObject:{ myVar2:12344 }})
.slog()
.patch("patched with query","test/myVar")
.slog()
.get("test")
.slog()
.put(7777777,"test/myObject/myVar2")
.slog()
.patch({other:true},"test/myObject/myVar2")
.slog()
.get("test")
.log();

Object store Usage

var deep = require("deepjs/deep");
require("deep-local-storage/index");
require("deep-restful/index");
 
deep.jstorage.object("myprotocol");
 
deep.restful("myprotocol")
.post({ hello:"world", id:"/my/path" })
.get()
.log();
 
deep("myprotocol::/my/path").log();
 
//...
 

Keywords

none

install

npm i deep-local-storage

Downloadsweekly downloads

15

version

0.3.3

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability