# local-json-store

> ## Installation ## `npm install local-json-store`

Latest version **1.0.9** (published 2020-12-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install local-json-store
pnpm add local-json-store
yarn add local-json-store
bun add local-json-store
```

## 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.9 |
| Published | 2020-12-11 |
| First published | 2020-12-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Linkert |
| Maintainers | polarbearzz |

## Links

- npm: https://www.npmjs.com/package/local-json-store
- npm.io page: https://npm.io/package/local-json-store

## Dependencies (1)

- [write-file-atomic](https://npm.io/package/write-file-atomic.md) ^1.1.4

## Recent versions

- 1.0.9 (latest) — 2020-12-11
- 1.0.8 — 2020-12-09
- 1.0.7 — 2020-12-09
- 1.0.6 — 2020-12-09
- 1.0.5 — 2020-12-09
- 1.0.4 — 2020-12-09
- 1.0.3 — 2020-12-09
- 1.0.2 — 2020-12-09

## README

# local-json-store #

## Installation ##
`npm install local-json-store`

## Usage ##
```JavaScript    
const JSONStorage = require('./index').JSONStorage;
const js = new JSONStorage('./test');
js.setItem('testKey', {'aaa': 'bbb'});
console.log(js.getItem('testKey')['aaa']);
```

## Fully implements the localStorage specfication including: ###
* All methods
  * length
  * setItem(key, value)
  * getItem(key)
  * removeItem(key)
  * key(n)
  * clear()
* Serializes to disk in the location specified during instantiation
* Associative array `jsonStorage['myKey'] = 'myValue'` and dot property `jsonStorage.myKey = 'myValue'`

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