# caramelcookie

> create and access browser cookie data

Latest version **1.0.2** (published 2020-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install caramelcookie
pnpm add caramelcookie
yarn add caramelcookie
bun add caramelcookie
```

## 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.2 |
| Published | 2020-05-13 |
| First published | 2020-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 29.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | bumblehead |
| Keywords | cookie, browser |

## Links

- npm: https://www.npmjs.com/package/caramelcookie
- Repository: https://github.com/iambumblehead/caramelcookie
- Homepage: https://github.com/iambumblehead/caramelcookie#readme
- Issues: https://github.com/iambumblehead/caramelcookie/issues
- npm.io page: https://npm.io/package/caramelcookie

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-05-13
- 1.0.1 — 2020-05-06
- 1.0.0 — 2020-05-06

## README

caramelcookie
============

caramelcookie will get, set, and rm [cookie][2] data.     cookie names are case-insensitive _[rfc link.][3]_ caramelcookie associates cookies with the top-level domain by default. cookies must associate with a domain, beginning with a '.' character, ex '.foxsports.com'.


```javascript
caramelcookie.get('cookiename') // 'cookieval'
caramelcookie.set('cookiename', 'cookieval', {
  expires : {
    d  : 5,
    hh : 2 // expires: 5 days, 2 hours
  }
});
caramelcookie.rm('cookiename');
caramelcookie.getall();
//{
//  cookiename1 : 'cookieval1'
//  cookiename2 : 'cookieval2'
//}
```


[0]: http://www.bumblehead.com                            "bumblehead"
[2]: https://developer.mozilla.org/en-US/docs/DOM/document.cookie
[3]: http://tools.ietf.org/html/rfc6265                      "rfc6265"
[4]: http://msdn.microsoft.com/en-us/library/ms970178.aspx      "msdn"
[7]: https://raw.githubusercontent.com/iambumblehead/es5classic/master/es5classic_120x120.png
  
![scrounge](https://github.com/iambumblehead/scroungejs/raw/master/img/hand.png)

(The MIT License)

Copyright (c) [Bumblehead][0] <chris@bumblehead.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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