# pico

> A Smaller CouchDB Client

Latest version **0.1.17** (published 2013-11-26) · 0 weekly downloads

## Install

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

## 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.1.17 |
| Published | 2013-11-26 |
| First published | 2012-09-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stephane Alnet |
| Maintainers | shimaore |
| Keywords | couchdb |

## Links

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

## Dependencies (2)

- [byline](https://npm.io/package/byline.md) >=2.0.3 <4.0.0
- [request](https://npm.io/package/request.md) >=2.16.6

## Recent versions

- 0.1.17 (latest) — 2013-11-26
- 0.1.16 — 2013-04-16
- 0.1.14 — 2013-03-17
- 0.1.13 — 2013-03-03
- 0.1.10 — 2013-01-02
- 0.1.7 — 2012-11-14
- 0.1.4 — 2012-11-14
- 0.1.3 — 2012-10-31
- 0.1.1 — 2012-09-02

## README

pico - A smaller CouchDB client for Node.js
-------------------------------------------

(c) 2012 Stephane Alnet

pico.request is mikeal/request extended with a prefix URI that
is automatically prepended to any URI.

    r = pico.request('http://127.0.0.1:5984/db')
    r.get('foo') // plain request method, no magic

pico builds on pico.request (and therefor request) and provides
CouchDB-oriented methods.

    r = pico('http://127.0.0.1:5984/db')
    r.request.get('foo') // pico.request method, no magic
    r.get('foo') // pico (CouchDB) method, some magic added

`get(id,options,function(error,response,json))`
Returns the document identified by id. Note that the revision is then `{_rev:etag}`.

`rev(id,options,function(error,response,{rev:etag}))`
Returns the latest rev for the document identified by id. The revision is `{rev:etag}`.

`put(doc,options,function(error,response,json))`
Creates or updates the document. The json object might contain `{rev:etag}` if the operation was successful.

`remove(doc,options,function(error,response,json))`
Deletes the document. The json object might contain `{rev:etag}` if the operation was successful.

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