Hi,
I think it should be changed and respected Ruby and ECMA-262 identifier conventions. For example timestamps! use _ instead of - (created_at instead of created-at). Is there any special reason for using couchrest-type instead of couchrest_type?
For example then I can use this way in map function:
function(doc) {
if (doc.couchrest_type == 'Document') {
....
}
}