1.0.6 • Published 10 years ago

tough-cookie-framework v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
10 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

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago