Namespace-in-CoffeeScript icon indicating copy to clipboard operation
Namespace-in-CoffeeScript copied to clipboard

Can't make it work for Node.js

Open kristianmandrup opened this issue 12 years ago • 0 comments

Trying to use it something like this within Node.js

No matter what I do, it can never find the namespace module

package.json

"dependencies": {
    "express": "3.4.4",
    "jquery":  "*",
    "coffee-script": "*",
    "namespace": "1.0.0",
module = require 'namespace'
# require 'namespace'

module App:MiddleWare:
  class Base
    construct: (name) ->
      console.log "Base #{name}"

module App:MiddleWare:
  class Model extends Base
    construct: (name) ->
      console.log "Hello #{name}"

How would I make this work!?

kristianmandrup avatar Nov 16 '13 20:11 kristianmandrup