0

I am trying to learn node and want to figure out what the 'node' command actually does?

Is there a way to read the 'node' command or interpret it? Where would I start in their API, http://nodejs.org/api/ to figure out what node is and does?

Kamilski81
  • 14,409
  • 33
  • 108
  • 161
  • the `node` command is the javascript engine and runtime. There's sourcecode available on the nodejs.org site, but if you're interested in "learning" node then you're talking about learning how to write serverside javascript. There's a lot of tutorials on that. – Joe Dec 05 '13 at 14:19
  • 1
    If you want to learn node.js check this http://stackoverflow.com/questions/2353818/how-do-i-get-started-with-node-js and www.nodebeginner.org – Damodaran Dec 05 '13 at 14:20

1 Answers1

1

The C++ is here: https://github.com/joyent/node/blob/master/src/node.cc#L3257 and the JavaScript is here: https://github.com/joyent/node/blob/master/src/node.js

Peter Lyons
  • 142,938
  • 30
  • 279
  • 274