RESTful wrapper for remote servers exposing the Web Storage API
npm install remotestorenpm install remotestore
DELETE, GET, PUT, and POST for count, key method calls then install storeserver with npm install storeserver.
storeserver it can download remotestore.js to you, so your base html file will look something like this:
<html>
<head>
<script src="http://localhost:3000/remotestore.js"></script>
</head>
<script>
const store = new RemoteStore("http://localhost:3000");
... your code ...
</script>
</html>
`
API
RemoteStore supports the same API and Web Storage except that all methods return a Promise and the length property is not available, count() must be used instead.
Release History (reverse chronological order)
v0.0.8 2017-08-06 ALPHA Corrected documentation typos.
v0.0.7 2017-08-06 ALPHA Improved error handling.
v0.0.6 2017-08-01 ALPHA Removed dummy calls that are not part of Web Storage API, e.g. open and close.
v0.0.5 2017-07-30 ALPHA Fixed issue where getItem` did not work if caching was off.