# zenstorejs

> Client API for zenstore

Latest version **0.0.1** (published 2014-02-27) · MIT license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2014-02-27 |
| First published | 2014-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Johannes Boyne |
| Maintainers | johannesboyne |

## Links

- npm: https://www.npmjs.com/package/zenstorejs
- npm.io page: https://npm.io/package/zenstorejs

## Dependencies (1)

- [through](https://npm.io/package/through.md) ~2.3.4

## Recent versions

- 0.0.1 (latest) — 2014-02-27
- 0.0.2 — 2014-02-27

## README

#zenstorejs

zenstorejs is the npm package for [zenstore](https://github.com/johannesboyne/zenstore). And it is very easy to use:

```javascript
  zenstorejs.store('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9',
                   JSON.stringify({
                     mytest: 1
                   }),
                   function (err, ret) {
                     zenstorejs.get('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9', function (err, ret2) {
                       t.equal(ret, ret2);
                       t.equal(ret, JSON.stringify({mytest: 1}));
                       t.end();
                     });
                   });
  // ---
  zenstorejs.createWritePipe('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9', function (zenPipe) {
    zenPipe.on('end', function () {
      zenstorejs.get('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9', function (err, ret) {
        t.equal(ret, JSON.stringify({testtest: 123}));
        t.end();
      });
    });
    zenPipe.end('{"testtest": 123}');
  });
```

BTW: Have you looked at [zenstorecli](https://github.com/johannesboyne/zenstorecli)?

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