Node Roundup: 0.7, Cromag, Servitude, Magician

2012-01-18 00:00:00 +0000 by Alex R. Young
You can send in your Node projects for review through our contact form or @dailyjs.

Node 0.7

Node 0.7.0 was announced on the Node blog, which marks the first release of the new unstable series:

Almost all users will want to remain using the stable v0.6 releases

This version includes experimental isolates support. There's a lot of discussion on this in the Node v0.7.0 nodejs group thread. Ben Noordhuis gave a brief overview:

Isolates are (will be) API-compatible with child processes. So you call child_process.fork({thread:true}) and it will spawn a new isolate instead a new process.

Isolates are something that will crop up a lot more as Node heads towards 0.8, so it's worth being aware of what they are and how they work.


Cromag (License: MIT, npm: cromag) by Jerry Sievert is named after the fact it doesn't use monkey patching, unlike a lot of date libraries. We've recently seen some extremely solid date libraries, including XDate, and Cromag is another offering with a different API.

Cromag currently offers a slew of methods to manipulate dates and times, which are documented in the Cromag readme. The author has also included tests written with Vows, so it should be fairly easy to hack and patch it.


Servitude (GitHub: JerrySievert / servitude, License: MIT/X11, npm: servitude) also by Jerry Sievert, helps inject CSS and JavaScript into the DOM to cut down on requests. It can also optionally cache requests and mangle them with Uglify.

Jerry's examples demonstrate Servitude being used with Bricks which is his Node web framework. Servitude's plugin signature looks similar to Connect middleware, but I don't think Bricks uses the same API for the request and response objects.


Magician (License: MIT, npm: magician) by Vadim Demedes is an ImageMagick library. The command-line ImageMagick libraries are required, but once they're installed lots of image manipulation tools are possible from within your Node applications.