FileReader

FileReader

new FileReader()

Source:

Methods

matchFiles(pattern, root) → {Promise.<Array.String>}

Source:
Parameters:
Name Type Description
pattern String | Array.<String> a single glob pattern or an array of patterns
root String the root directory to start looking for files matching the pattern
Returns:
Type:
Promise.<Array.String>
a promise that will be resolved with an array of files matching the pattern starting from the root directory

readNode(arguments) → {Node|Array.<Node>}

Source:
Parameters:
Name Type Description
arguments Array.<String> an array of path elements that will, once joined and resolved relative to the root directory, point to a html file that will be read and parsed
Returns:
Type:
Node | Array.<Node>
a single node or an array of nodes depending on the input file

readNodes(arguments) → {Array.<Node>}

Source:
Parameters:
Name Type Description
arguments Array.<String> an array of path elements that will, once joined and resolved relative to the root directory, point to a html file that will be read and parsed
Returns:
Type:
Array.<Node>
an array of HTML Nodes