# couch-getsetgo

> Easy API for couchdb.

Latest version **1.0.6** (published 2012-09-13) · 0 weekly downloads

## Install

```sh
npm install couch-getsetgo
pnpm add couch-getsetgo
yarn add couch-getsetgo
bun add couch-getsetgo
```

## 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.0.6 |
| Published | 2012-09-13 |
| First published | 2012-09-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Siddiq |
| Maintainers | siddiq |

## Links

- npm: https://www.npmjs.com/package/couch-getsetgo
- Repository: https://github.com/siddiq/getsetgo
- Issues: https://github.com/siddiq/getsetgo/issues
- npm.io page: https://npm.io/package/couch-getsetgo

## Dependencies (1)

- [request](https://npm.io/package/request.md) >=2.11.0

## Recent versions

- 1.0.6 (latest) — 2012-09-13
- 1.0.5 — 2012-09-07
- 1.0.4 — 2012-09-07
- 1.0.3 — 2012-09-07
- 1.0.1 — 2012-09-04
- 1.0.0 — 2012-09-01

## README

getsetgo
========

Easy to use nodejs couchdb driver.
Couchdb becomes a simple keystore with a get() and set() functions.

Install:
=======
```
npm install couch-getsetgo
```

Test:
======
```
cd node_modules/couch-getsetgo/
node test.js
```

Examples:
=========
```
db = require('couch-getsetgo');
db.connect({url: 'http://getsetgo-test.iriscouch.com/test'});
```

Write:
=========
Inserts new doc or update existing.
```
doc = {_id: '12345', x: 1, y: 2};

db.set( doc );
```

Read:
=========
```
db.get('12345', function (err, doc) {
  if (doc) {
    // Success
  }
});
```

Full Example:
=========
```
db.connect({url: 'http://getsetgo-test.iriscouch.com/test'});

doc1 = {_id: '12345', x: 1, y: 2};

db.set(doc1, function (err) {
  if (!err) {
    // Successfully saved
    db.get('12345', function (err, doc2) {
      if (doc2) {
        // Success
        console.log(doc2);
      }
    });
  }
});
```

Relax !
=====

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