Open adelevie opened 10 years ago
This is Citation's fault - it shouldn't leak a namespace at all. You should be forced to say...
var Citation = require('citation')
...to "capture" the citation module in the name of your choice. I'm fixing this now in Citation, and I think Walverine should work the same way.
I'm not sure why this is, but right now, when I do a require('walverine')
, I get this in the node
REPL:
> Walverine
ReferenceError: Walverine is not defined
at repl:1:2
at REPLServer.self.eval (repl.js:110:21)
at Interface.<anonymous> (repl.js:239:12)
at Interface.EventEmitter.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.EventEmitter.emit (events.js:98:17)
at emitKey (readline.js:1095:12)
> WalverineCitation
[Function]
Fixed it in Citation at https://github.com/unitedstates/citation/commit/ab19821e8661668b7365b2353886252d71fef984
Output:
A simple fix would be to find/replace
Citation
in Walverine, and call it something likeWalverineCitation
.Any objections?