Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
use html5 localstorage with node stream api
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
demo-bundle.js
demo.html
index.js
package.json
test.js

README.md

localstream

npm install localstream

use html5 localstorage with node stream api

var ls = require('localstream');

ls is a stream and speaks stream events: storage, error and end. that means you can pipe storage to anything that accepts streams, such as an XHR.

Example

ls.on('storage', function(data){
  console.log(data);    
})

ls.on('error', function(err){
  console.log(err);
})

ls.set("key", value);
ls.get("key");
Something went wrong with that request. Please try again.