Skip to content

Commit

Permalink
update readme for new markdown parser
Browse files Browse the repository at this point in the history
  • Loading branch information
harthur committed Jun 1, 2011
1 parent 8c96fd0 commit e06a3fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -12,6 +12,7 @@ costco is a [couchapp](http://couchapp.org), you can push it to any db:
costco takes a map function and executes it on all the docs in the database. The map function should return the new doc that you'd like to replace the old one, or `null` if it should be deleted. Returning `undefined` does nothing to that doc.

An example map function that increments a field in all the docs and deletes some docs based on another field:

function(doc) {
if(doc.text.length > 200)
return null;
Expand Down

0 comments on commit e06a3fd

Please sign in to comment.