DailyJS

Node Roundup: 0.7, Cromag, Servitude, Magician

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

graphics date node modules

Node Roundup: 0.7, Cromag, Servitude, Magician

Posted by Alex R. Young on .
Featured

graphics date node modules

Node Roundup: 0.7, Cromag, Servitude, Magician

Posted by Alex R. Young on .
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

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

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

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.