Closed tallesl closed 10 years ago
I think that should do it, but i'm in a hurry, so i'll confess to not testing it. Please let me know if i bombed this in my haste. I'll be back later this evening. :)
Still broken on Node...
Now the require
gives no error, but all properties are undefined.
$ npm install case
case@1.1.1 node_modules/case
$ node
> var Case = require('case')
undefined
> Case.upper('test')
TypeError: Object #<Object> has no method 'upper'
at repl:1:7
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.emit (events.js:95:17)
at Interface._onLine (readline.js:202:10)
at Interface._line (readline.js:531:8)
at Interface._ttyWrite (readline.js:760:14)
at ReadStream.onkeypress (readline.js:99:10)
at ReadStream.emit (events.js:98:17)
at emitKey (readline.js:1095:12)
> Case.upper
undefined
It's probably not exporting correctly for Node (module.exports
).
Working OK now.
Thanks :+1:
I guess the problem lies on these 2 lines.