0.1.17 • Published 10 years ago

pico v0.1.17

Weekly downloads
46
License
-
Repository
-
Last release
10 years ago

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.

0.1.17

10 years ago

0.1.16

11 years ago

0.1.15

11 years ago

0.1.14

11 years ago

0.1.13

11 years ago

0.1.12

11 years ago

0.1.11

11 years ago

0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.23

12 years ago

0.0.22

12 years ago

0.0.21

12 years ago

0.0.20

12 years ago

0.0.19

12 years ago

0.0.18

12 years ago

0.0.17

12 years ago

0.0.16

12 years ago

0.0.15

12 years ago

0.0.14

12 years ago

0.0.13

12 years ago

0.0.12

12 years ago

0.0.11f

12 years ago

0.0.11e

12 years ago

0.0.11d

12 years ago

0.0.11c

12 years ago

0.0.11b

12 years ago

0.0.11a

12 years ago

0.0.10

12 years ago