Monday, 3 June 2013

Debugging node.js

ndb  -  Command line debugger. Eclipse debugger plugin for V8. Node inspector is a graphical debugging tool for node.js. To install node inspector module $ npm install node-inspector -g To enable debug mode $ node --debug  your/node/program.js To pause script on first line $...

Wednesday, 27 March 2013

Tuesday, 26 March 2013

Saturday, 19 January 2013

Thursday, 17 January 2013

Thursday, 10 January 2013

Tuesday, 8 January 2013

Filesystem module (fs) in node.js

File system module is to access files on the disk. To use the module, use   "require(fs)  "  and all the methods have synchronous and asynchronous forms. Asyn form always takes completion call back as a last argument and 1st argument for exception. If the operation completed...

Event mechanism in node.js

Node.js is an Event driven like Dom. When user interacts with particular interface, then there is an event. Node.js created EventEmitter class to provide basic event functionality. require('events').EventEmitter  to access EventEmitter. This class contains different events 1.emitter.addListener(event,listener) ...