[nodejs] undefined [newbie]

2013-08-11 Thread Mattias Larsson
Hi, When I'm running this example script I get undefined... What could be the problem? I have installed the npm package traceroute. traceroute = require('traceroute'); traceroute.trace('google.com', function (err,hops) { if (!err) console.log(hops);}); Copied from

Re: [nodejs] undefined [newbie]

2013-08-11 Thread Jose Luis Rivas
On 8/11/13 3:55 AM, Mattias Larsson wrote: Hi, When I'm running this example script I get undefined... What could be the problem? I have installed the npm package traceroute. |traceroute = require('traceroute'); traceroute.trace('google.com', function (err,hops) { if (!err)

Re: [nodejs] undefined [newbie]

2013-08-11 Thread Mattias Larsson
Thanks Jose ! Didn't know it was a wrapper function! It works now ! Br, Mattias On Sunday, August 11, 2013 1:29:00 PM UTC+2, Jose Luis Rivas wrote: On 8/11/13 3:55 AM, Mattias Larsson wrote: Hi, When I'm running this example script I get undefined... What could be the problem?