Skip to content

Instantly share code, notes, and snippets.

@mathias
Created March 9, 2013 18:37
Show Gist options
  • Save mathias/5125195 to your computer and use it in GitHub Desktop.
Save mathias/5125195 to your computer and use it in GitHub Desktop.
Is this how people are using node/npm modules with CoffeeScript classes?
require('coffee-script');
var SimpleClass = require('./simple_class');
var simple_class = new SimpleClass;
console.log(simple_class.foo());
class SimpleClass
foo: ->
"bar"
module.exports = SimpleClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment