Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
Fix sample usage documentation based on >= v0.0.8 . #2
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Sep 12, 2012
1 parent 67f0969 commit 0b39711
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -47,25 +47,25 @@ Tasks:
Programmatically:

// use default couchpenter.json setup file
var couchpenter = new require('couchpenter').Couchpenter(
var couchpenter = new (require('couchpenter'))(
'http://user:pass@localhost:5984'
);

// use custom setup file
var couchpenter = new require('couchpenter').Couchpenter(
var couchpenter = new (require('couchpenter'))(
'http://user:pass@localhost:5984',
{ setupFile: 'somecouchpenter.json' }
);

// prefix the database names
// handy for running multiple tests in parallel without interrupting each other
var couchpenter = new require('couchpenter').Couchpenter(
var couchpenter = new (require('couchpenter'))(
'http://user:pass@localhost:5984',
{ prefix: 'testrun123_' }
);

// specify a base directory for the documents specified in setup file
var couchpenter = new require('couchpenter').Couchpenter(
var couchpenter = new (require('couchpenter'))(
'http://user:pass@localhost:5984',
{ dir: '../some/dir/' }
);
Expand Down

0 comments on commit 0b39711

Please sign in to comment.