var mkdirp = require('mkdirp'); mkdirp('/tmp/foo/bar/baz', 0755, function (err) { if (err) console.error(err) else console.log('pow!') });
info at jsclasses dot org