I am Hack Sparrow
Captain of the Internets.

Archive for February, 2012

Node.js Image Processing and Manipulation

Wondering how image processing is done in Node.js? Like almost all other serverside technologies, ImageMagick is the most popular choice for image processing in Node.js. But ImageMagick's syntax is a little too complicated for the average developer, and the method of calling it further complicates the matter. Worry not, there is a Node.js module called EasyImage which will ensure that image manipulation in Node.js is a breeze for you ...

Command line Node.js Programs / Scripts / Utilities / Modules

Ever wondered how to create command line Node.js scripts? If not, go through Node's in-built modules like Child Process, File System, Readline, and Process and see if they inspire you in any way ...

FLV to MP3 Converter in Node.js

Yeah, you read that right. It's a FLV to MP3 converter in Node.js! The general idea about Node.js seems to be that it is 'serverside JavaScript'. I would like to wake up the world to the fact that Node is not just about developing websites, it is a system programming platform. Web development just happens to be one of the many capabilities of Node. Just to show the potential of Node.js, I created a very simple FLV to MP3 converter based on ...

Create NPM Package – Node.js Module

Want to publish your Node.js module to the public NPM registry? I'll show you how to do so using an example. Yesterday I created a module called flv2mp3 for converting FLV files to MP3 files. Let's put it up on the NPM registry for the world to be blinded by its technical splendor. Publishing a Node module involves working with two networks - a remote repository and the ...

Running Express.js in Production Mode

So you have become a Node.js developer and have ever since started churning out kickass Express.js apps by the dozens. But you have a little secret - you still can't figure how to run your Express.js app in production mode. All your apps run in development mode: [code] Express server listening on port 3000 in development mode [/code] How do you run Express in production mode? Do I need to edit a config file or something? Do I need to s ...