# @springtree/eva-sdk-core-storage

> Wrapper for localStorage functionality

Latest version **3.0.0** (published 2026-05-26) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @springtree/eva-sdk-core-storage
pnpm add @springtree/eva-sdk-core-storage
yarn add @springtree/eva-sdk-core-storage
bun add @springtree/eva-sdk-core-storage
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-05-26 |
| First published | 2019-11-12 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SpringTree |
| Maintainers | mdoeswijk, janvandenberg, adebree, springtree_solutions |

## Links

- npm: https://www.npmjs.com/package/@springtree/eva-sdk-core-storage
- Repository: https://github.com/springtreesolutions/eva-sdk-repo
- Homepage: https://github.com/springtreesolutions/eva-sdk-repo#readme
- Issues: https://github.com/springtreesolutions/eva-sdk-repo/issues
- npm.io page: https://npm.io/package/@springtree/eva-sdk-core-storage

## Recent versions

- 3.0.0 (latest) — 2026-05-26
- 2.0.1 — 2024-02-29
- 2.0.0 — 2024-02-29
- 1.3.2 — 2021-09-20
- 1.3.1 — 2021-02-22
- 1.3.0 — 2021-02-22
- 1.2.11 — 2021-02-22
- 1.2.10 — 2021-02-22
- 1.2.9 — 2021-02-19
- 1.2.3 — 2020-11-12
- 1.2.2 — 2020-08-04
- 1.2.1 — 2019-12-20
- 1.2.0 — 2019-11-14
- 1.1.2 — 2019-11-12

## README

# `@springtree/eva-sdk-core-storage`

Provides a wrapper around browser localStorage.
If localStorage is unvailable (private mode browsing) it will fallback to memory storage solution.
This will allow your app and other packages form the SDK to use a consistent API.
It will also allow for normal storage functionality within a private browsing session.

## Usage

```typescript
import { EvaStorage } from "@springtree/eva-sdk-core-storage";

// Declare your own storage keys
//
export interface IMyAppStorage {
  key1?: string;
  key2?: string;
}

// Instatiate with out storage shape for type completion on get/set methods
//
const evaStorage = new EvaStorage<IMyAppStorage>();

// Provides methods as found on browser localStorage
//
evaStorage.getItem("key2");

evaStorage.setItem("key1", "my value");

evaStorage.removeItem("key2");

evaStorage.clear();
```

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