From 1453b656f8000e99f550bcde764518c846ecdd45 Mon Sep 17 00:00:00 2001 From: timemachine3030 Date: Mon, 13 Sep 2010 13:11:31 +0800 Subject: [PATCH] Updated to show invocation when using index.js --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b793616..3aa769d 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,16 @@ A thin node.js idiom based module for [CouchDB's REST API](http://wiki.apache.or Installation is simple: - $ cd ~/.node_libraries + $ cd ~/src $ git clone git://github.com/felixge/node-couchdb.git + $ cd ~/.node_libraries + $ ln -s ~/src/node-couchdb couchdb To use the library, create a new file called `my-couch-adventure.js`: var sys = require('sys'), - couchdb = require('node-couchdb/lib/couchdb'), + couchdb = require('couchdb'), client = couchdb.createClient(5984, 'localhost'), db = client.db('my-db'); @@ -294,4 +296,4 @@ See the [CouchDB docs](http://wiki.apache.org/couchdb/HTTP_database_API#Changes) ## Limitations * Streaming attachments is not supported at this point (patches welcome) -* Etags are only available via client.request({full: true}) \ No newline at end of file +* Etags are only available via client.request({full: true})