Skip to content

file

parseDirectoryFile ⇒ Promise.<(object|undefined)>

Parses the content of a directory file based on its extension and configuration.

Kind: global constant
Returns: Promise.<(object|undefined)> - A promise that resolves with the parsed content of the file, or undefined if the file is a directory or has no associated parser.

ParamTypeDescription
fileDirectoryFileThe file object representing the directory file to be parsed.
optionsPluginOptionsThe plugin options providing configuration for the parsing.

Released under the MIT License.