lib/Wiretree.js
function (route, file, opts) {
	var filePath = path.join( route, file ),
		// name without extension
		fileName = path.basename( file, path.extname( file )),
		name;

	opts.localname = fileName;
	fileName = opts.transform( fileName );
	name = fileName;
	if (opts.prefix) {
		name = opts.prefix + capitaliseFirstLetter( name );
	}
	if (opts.suffix) {
		name = name + capitaliseFirstLetter( opts.suffix );
	}
	return { group: opts.group, localname: opts.localname, filePath: filePath, key: name, processing: opts.processing };
}
function (route, file, opts) {
	var filePath = path.join( route, file ),
		// name without extension
		fileName = path.basename( file, path.extname( file )),
		name;

	opts.localname = fileName;
	fileName = opts.transform( fileName );
	name = fileName;
	if (opts.prefix) {
		name = opts.prefix + capitaliseFirstLetter( name );
	}
	if (opts.suffix) {
		name = name + capitaliseFirstLetter( opts.suffix );
	}
	return { group: opts.group, localname: opts.localname, filePath: filePath, key: name, processing: opts.processing };
}
function ( route , file , opts ) { var filePath = path . join ( route , file ) , // name without extension fileName = path . basename ( file , path . extname ( file ) ) , name ; opts . localname = fileName ; fileName = opts . transform ( fileName ) ; name = fileName ; if ( opts . prefix ) { name = opts . prefix + capitaliseFirstLetter ( name ) ; } if ( opts . suffix ) { name = name + capitaliseFirstLetter ( opts . suffix ) ; } return { group : opts . group , localname : opts . localname , filePath : filePath , key : name , processing : opts . processing } ; }
/*!
get options to load files from folder
@param  {String} route path to file
@param  {String} file  filename with extension
@param  {Object} opts  prefix, suffix, and group
@return {Array}       Arguments ready to go
/ * ! get options to load files from folder