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) ...