# set-cookie-parser-es

> ESM port of set-cookie-parser with bundled types.

Latest version **1.0.5** (published 2022-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install set-cookie-parser-es
pnpm add set-cookie-parser-es
yarn add set-cookie-parser-es
bun add set-cookie-parser-es
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-12-26 |
| First published | 2022-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | batenkovt |
| Keywords | cookie, set-cookie, parser, es |

## Links

- npm: https://www.npmjs.com/package/set-cookie-parser-es
- Repository: https://github.com/enkot/set-cookie-parser-es
- Issues: https://github.com/enkot/set-cookie-parser-es/issues
- npm.io page: https://npm.io/package/set-cookie-parser-es

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-12-26
- 1.0.4 — 2022-12-26
- 1.0.3 — 2022-12-25
- 1.0.2 — 2022-12-25
- 1.0.1 — 2022-12-25
- 1.0.0 — 2022-12-25

## README

# set-cookie-parser-es

[![npm version][npm-version-src]][npm-version-href]
[![Codecov][codecov-src]][codecov-href]
[![bundle][bundle-src]][bundle-href]

ESM build of [set-cookie-parser](https://www.npmjs.com/package/set-cookie-parser) with bundled types. Accepts a single set-cookie header value or an array of set-cookie header. 

☝🏻 Unlike the original "set-cookie-parser":
- this library doesn't accept Node.js response object, in order to be framework/runtime agnostic.
- `splitCookiesString` accepts set-cookie string only.

## Usage

Install:

```sh
# npm
npm i set-cookie-parser-es

# yarn
yarn add set-cookie-parser-es
```

Import:

```js
// ESM
import { parse, parseString, splitCookiesString } from 'set-cookie-parser-es'

// CommonJS
const { parse, parseString, splitCookiesString } = require('set-cookie-parser-es')
```

## License

[MIT](./LICENSE)

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/set-cookie-parser-es?style=flat-square
[npm-version-href]: https://npmjs.com/package/set-cookie-parser-es

[codecov-src]: https://img.shields.io/codecov/c/gh/enkot/set-cookie-parser-es/main?style=flat-square
[codecov-href]: https://codecov.io/gh/enkot/set-cookie-parser-es

[bundle-src]: https://img.shields.io/bundlephobia/minzip/set-cookie-parser-es?style=flat-square
[bundle-href]: https://bundlephobia.com/result?p=set-cookie-parser-es

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