# almacen

> Easy to use library to work with localStorage and sessionStorage

Latest version **0.2.0** (published 2015-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install almacen
pnpm add almacen
yarn add almacen
bun add almacen
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-05-01 |
| First published | 2015-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ROJO 2 |
| Maintainers | rojo2 |
| Keywords | localStorage, sessionStorage, storage, simple |

## Links

- npm: https://www.npmjs.com/package/almacen
- Repository: http://github.com/rojo2/almacen
- Homepage: https://github.com/rojo2/almacen
- Issues: https://github.com/rojo2/almacen/issues
- npm.io page: https://npm.io/package/almacen

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

- 0.2.0 (latest) — 2015-05-01
- 0.1.0 — 2015-03-23
- 0.0.2 — 2015-03-17
- 0.0.1 — 2015-03-12

## README

# Almacen

## How to use it

Using [browserify](http://browserify.org) it's easy to use it.

```javascript
var almacen = require("almacen");

almacen.local.set("hello","world!");
almacen.session.set("foo","bar");

almacen.session.get("foo") === "bar"; // true

almacen.local.set("object", {
  "a": [
    "b": 1
  ]
});

almacen.local.get("object")
```

But this works too with [RequireJS](http://requirejs.org).

```javascript
define(["almacen"], function(almacen) {

  almacen.local.set("hello","world");

});
```

or even directly in the browser.

```html

<script src="almacen.js"></script>
<script>

  almacen.local.set("hello","world");

</script>

```

Made with ❤ by ROJO 2 (http://rojo2.com)

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