I'd like to use CoffeeScript with Nano.js, a minimalistic CouchDB module. In JavaScript, the requirements are:
var nano = require('nano')('http://127.0.0.1:5984');
However, there is no documentation on how to write this in CoffeeScript?
nano = require 'nano', 'http://127.0.0.1:5984'
Results in:
nano = require('nano', 'http://127.0.0.1:5984');
Which doesn't work.