# sweet-cookie

> A client-side cookie management package

Latest version **1.1.0** (published 2020-06-15) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2020-06-15 |
| First published | 2020-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | bsrsnlbyrk |
| Maintainers | bsrsnlbyrk |

## Links

- npm: https://www.npmjs.com/package/sweet-cookie
- npm.io page: https://npm.io/package/sweet-cookie

## Recent versions

- 1.1.0 (latest) — 2020-06-15
- 1.0.0 — 2020-06-15

## README

To create a cookie:

setCookie(key, value, options)

optional argument; options = { expires, path }
expires for cookie expiry date and path for cookie path

To append to an existing cookie: 

appendCookie(key, value, specialCharacter)

specialCharacter: the character between cookie values. it is optional, default value is comma.

To convert the cookie into an object:

parseCookie()

To get a specific cookie:

getCookie(key)

to delete a cookie:

deleteCookie(key)

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