Last Updated: February 25, 2016
·
4.437K
· duckitch

Export module in CoffeeScript for NodeJs

Simple way of exporting your module in CoffeeScript

#module.coffee
class Module
  construct: (@name) ->

module.exports = Module


#index.coffee
Module = require './module'

instance = new Module