updox.js
function (route, options) {
	var opts = options || {};
	opts.dest = opts.dest || './docs';
	opts.destname = opts.destname || false;
	route = route || './*.js';
	mkdirp( opts.dest, function (err) {
		if (err) {
			console.error(err);
		} else {
			// options is optional
			glob( route, function (err, files) {
				var f;
				if (err) {
					throw err;
				}
				for (f in files) {
					renderFile( files[f], opts );
				}
			});
		}
	});
}
function (route, options) {
	var opts = options || {};
	opts.dest = opts.dest || './docs';
	opts.destname = opts.destname || false;
	route = route || './*.js';
	mkdirp( opts.dest, function (err) {
		if (err) {
			console.error(err);
		} else {
			// options is optional
			glob( route, function (err, files) {
				var f;
				if (err) {
					throw err;
				}
				for (f in files) {
					renderFile( files[f], opts );
				}
			});
		}
	});
}
function ( route , options ) { var opts = options || { } ; opts . dest = opts . dest || './docs' ; opts . destname = opts . destname || false ; route = route || './*.js' ; mkdirp ( opts . dest , function ( err ) { if ( err ) { console . error ( err ) ; } else { // options is optional glob ( route , function ( err , files ) { var f ; if ( err ) { throw err ; } for ( f in files ) { renderFile ( files [ f ] , opts ) ; } } ) ; } } ) ; }
Document files in glob route path

Options:

- `dest`: documentation folder ('./docs' by default)
- `destname`: name of docfile (only when one file is documented)

@param  {String} route   glob path of javascript files
@param  {Object} options destiny and out name file
@return {Array}         list of documented files
Document files in glob route path