map-files

Return an object for a glob of files. Pass a `rename` function for the keys, or a `parse` function for the content, allowing it to be used for readable or require-able files.

gulp-directory-map

Convert a buffer of files into a JSON representation of the directory structure.