# @cookie-baker/core

> ## Install

Latest version **0.2.1** (published 2022-06-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cookie-baker/core
pnpm add @cookie-baker/core
yarn add @cookie-baker/core
bun add @cookie-baker/core
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2022-06-07 |
| First published | 2021-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniil Bataev Iurevich |
| Maintainers | bataevdaniil |

## Links

- npm: https://www.npmjs.com/package/@cookie-baker/core
- Repository: https://github.com/BataevDaniil/cookie-baker
- Homepage: https://github.com/BataevDaniil/cookie-baker#readme
- Issues: https://github.com/BataevDaniil/cookie-baker/issues
- npm.io page: https://npm.io/package/@cookie-baker/core

## Recent versions

- 0.2.1 (latest) — 2022-06-07
- 0.2.0 — 2021-10-19
- 0.0.1 — 2021-07-24

## README

# @cookie-baker/core

## Install

```
yarn add @cookie-baker/core
```

or

```
npm install @cookie-baker/core
```

## Example

```tsx
import { Cookie } from "@cookie-baker/core"

type CookieModel = {
  ga?: string
  adc?: string
}

const cookie = new Cookie<CookieModel>()
console.log(cookie.parse("ga=ga-value;adc=adc-value"))
console.log(cookie.stringify("ga", "ga-value"))
console.log(cookie.stringify("adc", "adc-value", { httpOnly: true }))
```

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