You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2020. It is now read-only.
I am not sure it's really an issue with arboreal, as I am rather a noob in javascript. If this is the case, please tell me.
Anyway, I would like to play with arboreal on the console on node.js.
I installed the package as described by cloning this repo and then running nmp install.
However, when I want to load that from the console, I get:
var tmp = require("./lib/arboreal")
undefined
tmp
{ [Function: Arboreal] parse: [Function] }
var tree = new Arboreal();
ReferenceError: Arboreal is not defined
at repl:1:16
at REPLServer.self.eval (repl.js:111:21)
at rli.on.e (repl.js:260:20)
at REPLServer.self.eval (repl.js:118:5)
at Interface. (repl.js:250:12)
at Interface.EventEmitter.emit (events.js:88:17)
at Interface._onLine (readline.js:199:10)
at Interface._line (readline.js:517:8)
at Interface._ttyWrite (readline.js:735:14)
at ReadStream.onkeypress (readline.js:98:10)
var tree = new tmp.Arboreal();
TypeError: undefined is not a function
at repl:1:12
at REPLServer.self.eval (repl.js:111:21)
at rli.on.e (repl.js:260:20)
at REPLServer.self.eval (repl.js:118:5)
at Interface. (repl.js:250:12)
at Interface.EventEmitter.emit (events.js:88:17)
at Interface._onLine (readline.js:199:10)
at Interface._line (readline.js:517:8)
at Interface._ttyWrite (readline.js:735:14)
at ReadStream.onkeypress (readline.js:98:10)