Run MapReduce from MongoJS

Is it possible to run a mapreduce job using mongojs in a node application. I realize that using mapreduce in the web server code is not the most efficient way to do this but it is for testing purposes.

Yes, have a look at the following function definition in node_modules/mongojs/mongodb/lib/collection.js:

Collection.prototype.mapReduce = function mapReduce (map, reduce, options, callback)