augment-vir - v31.47.0
Preparing search index...
grep
Function grep
grep
<
const
CountOnly
extends
boolean
=
false
>
(
grepSearchPattern
:
Readonly
<
_RequireExactlyOne
<
{
pattern
:
string
;
patterns
:
string
[]
}
,
"pattern"
|
"patterns"
,
>
,
>
,
grepSearchLocation
:
Readonly
<
_RequireExactlyOne
<
{
dir
:
string
;
dirs
:
string
[]
;
file
:
string
;
files
:
string
[]
}
,
"files"
|
"dirs"
|
"dir"
|
"file"
,
>
,
>
,
options
?:
Readonly
<
GrepOptions
<
CountOnly
>
>
,
)
:
Promise
<
GrepMatches
<
CountOnly
>
>
Run
grep
, matching patterns to specific lines in files or directories.
Type Parameters
const
CountOnly
extends
boolean
=
false
Parameters
grepSearchPattern
:
Readonly
<
_RequireExactlyOne
<
{
pattern
:
string
;
patterns
:
string
[]
}
,
"pattern"
|
"patterns"
,
>
,
>
grepSearchLocation
:
Readonly
<
_RequireExactlyOne
<
{
dir
:
string
;
dirs
:
string
[]
;
file
:
string
;
files
:
string
[]
}
,
"files"
|
"dirs"
|
"dir"
|
"file"
,
>
,
>
options
:
Readonly
<
GrepOptions
<
CountOnly
>
>
= {}
Returns
Promise
<
GrepMatches
<
CountOnly
>
>
Package
@augment-vir/node
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
augment-vir - v31.47.0
Loading...
Run
grep, matching patterns to specific lines in files or directories.