jcoglan/js.class — Issue #26: How do you use this with node?
Author: jmonster
Created: 2011-11-10 21:28:49+00:00
State: open

$ npm install jsclass
jsclass@3.0.4 ./node_modules/jsclass
└── nopt@1.0.10

$ node
> require('jsclass');
{}
> JS
ReferenceError: JS is not defined
at [object Context]:1:1
at Interface. (repl.js:179:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream. (readline.js:73:12)
at ReadStream.emit (events.js:81:20)
at ReadStream._emitKey (tty_posix.js:307:10)
at ReadStream.onData (tty_posix.js:70:12)
> JS = require('jsclass');
{}