Walk down a DOM tree
Install with component(1):
$ component install anthonyshort/dom-walk
var walk = require('walk');
walk(document.body, function(el, attrs, next){
// Process the node
next(); // Next node
}, function(){
// Walked all nodes
});
MIT