# elo7-cookie-amd

> Browser cookie management

Latest version **1.1.4** (published 2020-05-04) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install elo7-cookie-amd
pnpm add elo7-cookie-amd
yarn add elo7-cookie-amd
bun add elo7-cookie-amd
```

## 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.4 |
| Published | 2020-05-04 |
| First published | 2016-12-19 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Elo7 |
| Maintainers | elo7tech |
| Keywords | JS, cookie |

## Links

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

## Dependencies (1)

- [define-async](https://npm.io/package/define-async.md) 1.3.2

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.4 (latest) — 2020-05-04
- 1.1.3 — 2017-01-30
- 1.1.1 — 2017-01-02
- 1.1.0 — 2017-01-02
- 1.0.2 — 2016-12-19
- 1.0.1 — 2016-12-19

## README

# Cookie-amd

_Cookie-amd browser cookie library_

Cookie.js is a library that manipulates browser cookie. This library uses [amd](http://en.wikipedia.org/wiki/Asynchronous_module_definition) structure.

[![Build Status](https://travis-ci.org/elo7/cookie-amd.svg?branch=master)](https://travis-ci.org/elo7/cookie-amd)

## Install

Install with [Npm](https://www.npmjs.com/): `npm install elo7-cookie-amd`

## Dependency

Cookie-amd depends on an [amd](http://en.wikipedia.org/wiki/Asynchronous_module_definition) implementation. We suggest [define-async](https://www.npmjs.com/package/define-async) implementation for dependency lookup.

## Methods

#### get
`.get(name)`

###### Description:
Returns a the cookie value.

###### Sample:
``` js
define(['cookie'], function(cookie) {
	cookie.get('cookie-name');
});
```

#### set
`.set(name, value, days)`

###### Description:
Creates or rewrite a cookie value with a defined expiration time in days.

###### Sample:
``` js
define(['cookie'], function(cookie) {
	cookie.set('cookie-name', 'value', 1);
});
```


## License

Cookie-amd is released under the [BSD](https://github.com/elo7/cookie-amd/blob/master/LICENSE). Have at it.

* * *

Copyright :copyright: 2015 Elo7

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