1.0.6 • Published 9 years ago

tough-cookie-framework v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

A framework of Cookie Store

tough-cookie-framework is a framework of tough-cookie module. See tough-cookie documentation for more info.

installation

$ npm install tough-cookie-framework

Options

options : a javascript object.\

{
   key:string,
   get:function(key,callback){},
   put:function(key,data){} 
}

Usage

  var CookieStoreFramework = require("tough-cookie-framework");
  var CookieJar = require("tough-cookie").CookieJar;
  var storeEngine = new StoreEngine(); //your store engine impl

  var jar = new CookieJar(new CookieStoreFramework({
      key:'abcd',
      get:function(key,callback){
          storeEngine.get(key,callback);
      },
      put:function(key,value,callback){
          storeEngine.put(key,value,callback);
      }
  });
  

License

MIT

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago