UNPKG
@lvce-editor/ripgrep
Version:
latest (5.3.0)
5.3.0
5.2.0
5.1.0
4.1.0
4.0.0
3.1.0
3.0.0
2.5.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.2
1.0.1
1.0.0
A module for using ripgrep in a Node project
github.com/lvce-editor/ripgrep
lvce-editor/ripgrep
@lvce-editor/ripgrep
/
src
/
index.js
12 lines
(9 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{ dirname, join }
from
'node:path'
import
{ fileURLToPath }
from
'node:url'
const
__dirname =
dirname
(
fileURLToPath
(
import
.
meta
.
url
))
export
const
rgPath =
join
( __dirname,
'..'
,
'bin'
,
`rg
${process.platform ===
'win32'
?
'.exe'
:
''
}
`
, )