# tough-cookie-framework

> enhange tough-cookie

Latest version **1.0.6** (published 2015-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install tough-cookie-framework
pnpm add tough-cookie-framework
yarn add tough-cookie-framework
bun add tough-cookie-framework
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2015-03-11 |
| First published | 2015-01-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | samif |
| Maintainers | fangjianwei |
| Keywords | cookie |

## Links

- npm: https://www.npmjs.com/package/tough-cookie-framework
- Repository: https://github.com/fangjianwei/tough-cookie-framework
- Issues: https://github.com/fangjianwei/tough-cookie-framework/issues
- npm.io page: https://npm.io/package/tough-cookie-framework

## Dependencies (1)

- [tough-cookie](https://npm.io/package/tough-cookie.md) ^0.12.1

## Recent versions

- 1.0.6 (latest) — 2015-03-11
- 1.0.5 — 2015-01-28
- 1.0.4 — 2015-01-23
- 1.0.3 — 2015-01-23
- 1.0.2 — 2015-01-23
- 1.0.1 — 2015-01-23

## README

# A framework of Cookie Store

tough-cookie-framework is a framework of tough-cookie module. See 
[tough-cookie documentation](https://github.com/goinstant/tough-cookie#constructionstore--new-memorycookiestore-rejectpublicsuffixes) for more info.


## installation

    $ npm install tough-cookie-framework

## Options

  `options` : a javascript object.\<br>
   ``` javascript
   {
      key:string,
      get:function(key,callback){},
      put:function(key,data){} 
   }
   ```

## Usage

``` javascript
  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

---
_Source: https://npm.io/package/tough-cookie-framework · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
