# localstorage-cookie

> Make localStorage like cookie

Latest version **1.0.3** (published 2019-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install localstorage-cookie
pnpm add localstorage-cookie
yarn add localstorage-cookie
bun add localstorage-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.0.3 |
| Published | 2019-03-18 |
| First published | 2017-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Missile |
| Maintainers | missile |
| Keywords | localstorage, cookie |

## Links

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

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-03-18
- 1.0.2 — 2018-09-17
- 1.0.1 — 2017-09-12
- 1.0.0 — 2017-09-02

## README

# localstorage-cookie
make localstorage like cookie

### Usage:

```js
import cookie from 'localstorage-cookie'

// set
cookie.set('key-name', 'value', {
  // options
  maxAge: 1000 * 60 * 60 * 24 // ms
})

// get
cookie.get('key-name')

// remove
cookie.remove('key-name')

// clear (this will clear all cookie which domain you set)
cookie.clear()
```

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