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