# @mlynarczyk/simple-storage

> Simple wrapper for the local storage API.

Latest version **0.0.4** (published 2026-07-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mlynarczyk/simple-storage
pnpm add @mlynarczyk/simple-storage
yarn add @mlynarczyk/simple-storage
bun add @mlynarczyk/simple-storage
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2026-07-16 |
| First published | 2019-11-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | mlynarczyk |

## Links

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

## Recent versions

- 0.0.4 (latest) — 2026-07-16
- 0.0.3 — 2022-07-03
- 0.0.2 — 2020-10-26
- 0.0.1-rc — 2019-11-01

## README

# LocalStorage

A simple localStorage wrapper, adding defaultValue and optional stringifying/parsing of passed values.

# Examples

```typescript
import { get, set, remove, clear } from './src/LocalStorage';

get('example_key'); // null
get('example_key', 3); // 3
set('example_key', { example: 'a' }); // true
get('example_key'); // {example: 'a'}
get('example_key', { useJSONParse: false }); // "{example: 'a'}"
remove('example_key'); // undefined
get('example_key'); // null
set('example_key', { example: 'a' }); // true
clear(); // undefined
get('example_key'); // null
```

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