localstream

1.0.0 • Public • Published

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");

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i localstream

      Weekly Downloads

      1

      Version

      1.0.0

      License

      BSD

      Last publish

      Collaborators

      • deepak_robo