cough
It's pleasant to write CoffeeScript in snake case style, but module consumers are more than likely using plain JavaScript and expecting camel cased method names.
This module requires an environment supporting Proxies.
CoffeeScript
cough = require "cough"fs = cough require "fs" # this works data = fsread_file_sync "some-file.json" # or maybe export something snake cased, wrapped with cough module.exports = cough : -> # ... : -> # ...
JavaScript (importing the exported object above)
var theModule = ; // these worktheModule;theModule;
Alternately, you might use it in a constructor
: -> return cough @ : ->
Instances will respond to instance_method_one()
or instanceMethodOne()
.