index.js
function getTitleFromPath( file, options ) {

	var _titleSeparator = options && options.titleSeparator ?
				options.titleSeparator : titleSeparator,
			i = 0,
			parts = file.path.split('/'),
			fileParts = parts[parts.length - 1].split('.'),
			filename = fileParts[0],
			fileNameParts = filename.split( _titleSeparator ),
			len = fileNameParts.length,
			title = '';

	for ( ; i < len; i++ ) {

		title += i ? ' ' : '';
		title += fileNameParts[i];
	}

	return titleCase( title );
}
function getTitleFromPath( file, options ) {

	var _titleSeparator = options && options.titleSeparator ?
				options.titleSeparator : titleSeparator,
			i = 0,
			parts = file.path.split('/'),
			fileParts = parts[parts.length - 1].split('.'),
			filename = fileParts[0],
			fileNameParts = filename.split( _titleSeparator ),
			len = fileNameParts.length,
			title = '';

	for ( ; i < len; i++ ) {

		title += i ? ' ' : '';
		title += fileNameParts[i];
	}

	return titleCase( title );
}
function getTitleFromPath ( file , options ) { var _titleSeparator = options && options . titleSeparator ? options . titleSeparator : titleSeparator , i = 0 , parts = file . path . split ( '/' ) , fileParts = parts [ parts . length - 1 ] . split ( '.' ) , filename = fileParts [ 0 ] , fileNameParts = filename . split ( _titleSeparator ) , len = fileNameParts . length , title = '' ; for ( ; i < len ; i ++ ) { title += i ? ' ' : '' ; title += fileNameParts [ i ] ; } return titleCase ( title ) ; }
Get post title from file path

@param {Object} file
@param {Object} [options]
@returns {string}
Get post title from file path