# cookiedog

> A cookie store as a client

Latest version **0.0.0** (published 2015-04-30) · 0 weekly downloads

## Install

```sh
npm install cookiedog
pnpm add cookiedog
yarn add cookiedog
bun add cookiedog
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2015-04-30 |
| First published | 2015-04-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | fritx |
| Keywords | cookie, store, client, parser |

## Links

- npm: https://www.npmjs.com/package/cookiedog
- Repository: git@github.com:fritx/cookiedog
- Homepage: https://github.com/fritx/cookiedog
- Issues: https://github.com/fritx/cookiedog/issues
- npm.io page: https://npm.io/package/cookiedog

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.7.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2015-04-30

## README

# cookiedog - A dog for your cookie

This is a node.js module for cookie parsing and storing, which is being applied in **an awesome http project** under construction.

## APIs

```js
toCookie(obj)
parseCookie(str)
parseSetCookie(arr)

CookieClient(list)
CookieClient.prototype.setCookie(domain, arr)
CookieClient.prototype.getCookieObj(domain, path)
CookieClient.prototype.getCookie(domain, path)
```

## Usage

```
$ npm install cookiedog
```

```js
var cookiedog = require('cookiedog')
var cookieclient = new cookielib.CookieClient()
```

```js
var setcookie = res.headers['set-cookie'] || []
cookieclient.setCookie(domain, setcookie)
```

```js
var pathn = req._parsedUrl.pathname
headers['cookie'] = cookieclient.getCookie(domain, pathn)
```

## More?

Coming soon..

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