# @rocketstation/local-storage

> creates your personal bubble inside local storage. It assigns object to specific key and returns helpers for modifying it

Latest version **3.0.0** (published 2019-04-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rocketstation/local-storage
pnpm add @rocketstation/local-storage
yarn add @rocketstation/local-storage
bun add @rocketstation/local-storage
```

## 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 | 3.0.0 |
| Published | 2019-04-12 |
| First published | 2018-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rocket Station |
| Maintainers | oleksiibilous, oleksiipysanko |

## Links

- npm: https://www.npmjs.com/package/@rocketstation/local-storage
- Repository: https://github.com/rocketstation/local-storage
- Homepage: https://github.com/rocketstation/local-storage#readme
- Issues: https://github.com/rocketstation/local-storage/issues
- npm.io page: https://npm.io/package/@rocketstation/local-storage

## Recent versions

- 3.0.0 (latest) — 2019-04-12
- 2.0.1 — 2018-12-25
- 2.0.0 — 2018-12-25
- 1.0.1 — 2018-06-07
- 1.0.0 — 2018-06-07

## README

# Local Storage

Local Storage creates your personal bubble inside local storage. It assigns object to specific key and returns helpers for modifying it

## Installation

```
npm i @rocketstation/local-storage
```

## Usage

```javascript
import localStorage from '@rocketstation/local-storage'

const ls = localStorage('key')

ls.get() // {}

ls.set({ foo: 'bar' })
ls.get() // { foo: 'bar' }

ls.remove('foo')
ls.get() // {}

ls.add('foo', 'bar')
ls.get() // { foo: 'bar }

ls.update({ bar: 'foo' })
ls.get() // { foo: 'bar,  bar: 'foo'  }

```

## Motivation

We were tired of writing this code again and again

## License

Local Storage is licensed under the [MIT License](http://opensource.org/licenses/MIT)

Created by [RocketStation](http://rstation.io)

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