# @dlr-eoc/services-util-store

> This module exports services to store and retrieve data in localStorage, sessionStorage or an JS-object

Latest version **16.0.0** (published 2026-05-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dlr-eoc/services-util-store
pnpm add @dlr-eoc/services-util-store
yarn add @dlr-eoc/services-util-store
bun add @dlr-eoc/services-util-store
```

## Health

**Score 65/100 (B)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 16.0.0 |
| Published | 2026-05-29 |
| First published | 2020-08-28 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 20.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17 |
| Author | Team UKIS |
| Maintainers | dlr-eoc-ukis |
| Keywords | angular, store, localStorage, sessionStorage, object |

## Links

- npm: https://www.npmjs.com/package/@dlr-eoc/services-util-store
- Repository: https://github.com/dlr-eoc/ukis-frontend-libraries
- Homepage: https://github.com/dlr-eoc/ukis-frontend-libraries#readme
- Issues: https://github.com/dlr-eoc/ukis-frontend-libraries/issues
- npm.io page: https://npm.io/package/@dlr-eoc/services-util-store

## Dependencies (2)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [tslib](https://npm.io/package/tslib.md) ^2.6.3

## 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

- 16.0.0 (latest) — 2026-05-29
- 16.0.1-next.3 (next) — 2026-07-01
- 16.0.1-next.2 — 2026-06-15
- 16.0.1-next.1 — 2026-06-09
- 16.0.1-next.0 — 2026-06-05
- 16.0.0-next.9 — 2026-05-05
- 16.0.0-next.8 — 2026-03-16
- 16.0.0-next.7 — 2026-03-10
- 16.0.0-next.6 — 2026-03-06
- 16.0.0-next.5 — 2026-02-27
- 16.0.0-next.4 — 2026-02-26
- 16.0.0-next.3 — 2025-09-09
- 16.0.0-next.2 — 2025-08-01
- 16.0.0-next.0 — 2025-06-17
- 15.0.0 — 2024-12-30
- … 43 more at https://npm.io/package/@dlr-eoc/services-util-store/versions

## README

# @dlr-eoc/services-util-store

### how to use this in a ukis-angular project

```
import { UtilStoreService } from '@dlr-eoc/services-util-store';
```

```
constructor(private UtilStore: UtilStoreService,...)
```

```
function(){
  // set value
  this.UtilStore.local(key, value);

  // get value
  const value = this.UtilStore.local(key);
}
```


For examples see:
- [demo maps](../demo-maps/README.md)
- [cookie-alert](../cookie-alert/src/lib/cookie-alert.component.ts)


This module is used by components like:
- @dlr-eoc/cookie-alert
- @dlr-eoc/services-ogc
- ...


It implements a basic 'storage' to store key value based data in:
- local: localStorage
- session: sessionStorage
- runtime: runtimeStorage
- cookie


for more details [see map-state](../services-util-store/src/lib/util-store.service.ts)




===

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.14.

## Code scaffolding

Run `ng generate component component-name --project services-util-store` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project services-util-store`.
> Note: Don't forget to add `--project services-util-store` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build services-util-store` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test services-util-store` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

---
_Source: https://npm.io/package/@dlr-eoc/services-util-store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
