# lockable-storage

> Concurrency and locking for HTML5 localStorage

Latest version **1.1.0** (published 2015-08-31) · Copyright (c) 2012 (see LICENSE) license · 0 weekly downloads

## Install

```sh
npm install lockable-storage
pnpm add lockable-storage
yarn add lockable-storage
bun add lockable-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 | 1.1.0 |
| Published | 2015-08-31 |
| First published | 2015-08-31 |
| Weekly downloads | 0 |
| License | Copyright (c) 2012 (see LICENSE) |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Benjamin Dumke-von der Ehe |
| Maintainers | tchakabam |
| Keywords | local, storage, lock, mutex, multiple, tabs, concurrency |

## Links

- npm: https://www.npmjs.com/package/lockable-storage
- Repository: https://github.com/tchakabam/LockableStorage
- Issues: https://github.com/tchakabam/LockableStorage/issues
- npm.io page: https://npm.io/package/lockable-storage

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

- 1.1.0 (latest) — 2015-08-31
- 1.0.1 — 2015-08-31
- 1.0.0 — 2015-08-31

## README

# HTML5 Lockable Storage 

Manage concurrency between browser tabs running independent processes by (a)synchronizing the localStorage resource.

This is the implementation by *Benjamin Dumke-von der Ehe* as posted in his 2012 article [JavaScript concurrency and locking the HTML5 localStorage](http://balpha.de/2012/03/javascript-concurrency-and-locking-the-html5-localstorage/).

## Install

    bower install lockablestorage

or

```
  npm install lockable-storage
```

## Usage

    LockableStorage.lock('key', function () {
        // exclusive access to localStorage['key']
    });

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