ECMAScript Harmony – Compile ES6 code to ES5 using Traceur/Babel

ECMAScript Edition 6 (ES6) comes with lot of features such as classes, generators, destructuring, modules and much more. Currently ES6 code is not yet implemented/supported in all browsers and JS engines, you might wanna look here. Using Firefox and chrome(latest) developer tools you can test features like arrow functions etc. for chrome you will also need to […]

Node.js Streams, Pipe and chaining

A stream in Node.js is an abstract interface that is implemented by various objects. Thanks to Node.js’s asynchronous and event-driven nature, it excels at handling I/O-bound tasks and streams, which are similar to Unix pipes. For example, an HTTP server request is a stream, just like the standard output (stdout). The request is a readable […]