Count files matching the given predicate in this project If no predicate is supplied, does at least one file match the glob pattern? No guarantees about ordering
positive and negative globs to match
return a boolean or promise. Defaults to true
Delete files matching the glob pattern and extra test (if supplied)
project to act on
glob patterns for files to delete
additional, optional test for files to be deleted
Perform the same operation on all the files.
project to act on
glob patterns to match
operation to perform on files. Can return void or a promise.
Does at least one file matching the given predicate exist in this project? If no predicate is supplied, does at least one file match the glob pattern? No guarantees about ordering
positive and negative globs to match
return a boolean or promise. Defaults to true
Async generator to iterate over files.
to act on
glob pattern for files to match
function to determine whether this file should be included. Include all files if this function isn't supplied.
Gather values from files
to act on
glob pattern for files to match
function returning a promise (of the value you're gathering) from each file. Undefined returns will be filtered out
Promise of an array of files. Usually sourced from Project.streamFiles
Generated using TypeDoc
Allows conveniently passing one or many glob patterns to utility functions