Node Roundup: 6.1, Scaffoldit, Mixture

2011-11-16 00:00:00 +0000 by Alex R. Young
You can send your node modules and articles in for review through our [contact form](/contact.html) or [@dailyjs](http://twitter.com/dailyjs).

Node 6.1

Node 0.6.1 was released a few days ago, which adds improvements to documenation,
cluster, and includes a host of bug fixes.


Scaffoldit (npm: scaffoldit) by Craig Condon is a scaffolding library that makes it easy to take user
input and display data using templates. Templates can be written using
mustache, and it has command-line support through Craig's
celeri library.

One of the examples reminds me of skeleton app generators that come with
frameworks like Express:

  input: {
    projectName: 'What is your project name?'

  build: function(ops, next) {
    scaffoldit.fromDir(ops, '/path/to/input/dir', '/path/to/output/dir');

  complete: function() {

Also worth noting is Tim Caswell's
Step library is used to simplify the internal asynchronous code.


Mixture (License: MIT, npm: mixture) is a "heterogeneous cluster task manager" by Daniel Shaw. It can be used to programmatically create a diverse set of forked tasks
using a straightforward API:

var mix = require('mixture').mix()
  , ioPort = 8880
  , nodeId = 0
  , i
  , workers = [];

// announce data server

// socket.io instances
var socketio = mix.task('socket.io', { filename: 'app.js' })

for (i = 0; i < count; i++) {
  workers.push(socketio.fork({ args: [ioPort, nodeId] }));

// At some point, workers[n].kill() could be called

Daniel has written an example app that uses the library, called Stock