# handle-cookie

> Parse string to cookie object

Latest version **1.0.8** (published 2021-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install handle-cookie
pnpm add handle-cookie
yarn add handle-cookie
bun add handle-cookie
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2021-05-12 |
| First published | 2021-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | nghia |
| Maintainers | nqnghia285 |
| Keywords | handle-cookie, cookieSerialize, cookieParse |

## Links

- npm: https://www.npmjs.com/package/handle-cookie
- Repository: https://github.com/nqnghia285/handle-cookie
- Homepage: https://github.com/nqnghia285/handle-cookie.git#readme
- npm.io page: https://npm.io/package/handle-cookie

## Dependencies (2)

- [cookie](https://npm.io/package/cookie.md) ^0.4.1
- [@types/cookie](https://npm.io/package/@types/cookie.md) ^0.4.0

## Recent versions

- 1.0.8 (latest) — 2021-05-12
- 1.0.7 — 2021-05-12
- 1.0.6 — 2021-04-13
- 1.0.5 — 2021-04-12
- 1.0.4 — 2021-04-12
- 1.0.3 — 2021-04-12
- 1.0.2 — 2021-04-12
- 1.0.1 — 2021-04-11
- 1.0.0 — 2021-04-11

## README

# Handle Cookie [![Build Status](https://github.com/Links2004/arduinoWebSockets/workflows/CI/badge.svg?branch=master)](https://github.com/nqnghia285/handle-cookie.git)

### Functions:

```typescript
/**
 * @method cookieParse: Parse string to cookie objiect
 * @param str string | undefined
 * @param option CookieParseOptions | undefined
 * @returns { [key: string]: string } | undefined
 */
function cookieParse(str: string | undefined, option?: CookieParseOptions | undefined): { [key: string]: string } | undefined;
```

```typescript
/**
 * @method cookieSerialize: Convert object to cookie string
 * @param name string
 * @param value string | undefined
 * @param option CookieSerializeOptions | undefined
 * @returns string | undefined
 */
function cookieSerialize(name: string | undefined, value: string | undefined, option?: CookieSerializeOptions | undefined): string | undefined;
```

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