# easy-cookie-manager

> Easily manage cookies

Latest version **1.0.2** (published 2019-05-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install easy-cookie-manager
pnpm add easy-cookie-manager
yarn add easy-cookie-manager
bun add easy-cookie-manager
```

## 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.0.2 |
| Published | 2019-05-10 |
| First published | 2019-05-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brandon Sears |
| Maintainers | brandons |
| Keywords | cookie, cookies |

## Links

- npm: https://www.npmjs.com/package/easy-cookie-manager
- Repository: https://github.com/BrandonS8/easy-cookie-manager
- Homepage: https://github.com/BrandonS8/easy-cookie-manager#readme
- Issues: https://github.com/BrandonS8/easy-cookie-manager/issues
- npm.io page: https://npm.io/package/easy-cookie-manager

## Recent versions

- 1.0.2 (latest) — 2019-05-10
- 1.0.1 — 2019-05-10
- 1.0.0 — 2019-05-10

## README

# Easy Cookie Manager

To install `npm install easy-cookie-manager`

To set a cookie you have to provide 3 arguments (String: name, String: value, Integer: days until expired)

To get a cookie you have to provide 1 argument (String: name)

To delete a cookie you have to provide 1 argument (String: name)

```
import _Cookies from 'easy-cookie-manager'

// This sets a cookie called myCookieName with the value 'testvalue' that expires in 30 days
_Cookies.setCookie('myCookieName', 'testvalue', 30)

// This will return the value of the cookie, which is 'testvalue' in this case
_Cookies.getCookie('myCookieName')

// This will delete the cookie, deletion is done by setting the expiration date to an already passed time
_Cookies.deleteCookie('myCookieName')

```

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