Retrieves a module(s) by matching its source code against a string or regular expression.
Equivalent to getModule(filters.bySource(match), options).
getModule(filters.bySource(match), options)
The expected type of the module(s) to be returned.
A string or regular expression to match against the module's source code.
Configuration options for the module retrieval.
The matching module(s) or undefined if no match is found.
undefined
Optional
Retrieves a module(s) by matching its source code against a string or regular expression.
Equivalent to
getModule(filters.bySource(match), options).Template: T
The expected type of the module(s) to be returned.
Param: match
A string or regular expression to match against the module's source code.
Param: options
Configuration options for the module retrieval.
Returns
The matching module(s) or
undefinedif no match is found.See