grep(
pattern: string,
path: string,
options: GrepOptions = {}
): Promise<GrepResult| Name | Type | Description |
|---|---|---|
pattern* | string | |
path* | string | |
options | GrepOptions | Default: {} |
Search file contents for a literal string.
Literal text to search for. Not a regular expression.
Absolute path of the directory to search under.
Optional glob file filter, result cap, request options.