ripgrep-js:围绕ripgrep的Node.js包装器

时间:2021-03-19 15:13:07
【文件属性】:
文件名称:ripgrep-js:围绕ripgrep的Node.js包装器
文件大小:99KB
文件格式:ZIP
更新时间:2021-03-19 15:13:07
TypeScript -js 周围的Node.js包装器 注意:与ripgrep或此JS库的搜索功能无关。这只是在Node.js中公开ripgrep结果的包装。基础工具的全部功劳归和原始项目的可爱贡献者。 另请注意: ripgrep必须安装在$PATH某个位置才能起作用。 用法 import { ripGrep as rg } from 'ripgrep-js' ; // Give `rg` an absolute path to search in and the search term const results = await rg ( 'path/to/search' , 'foo' ) ; // `results` is an array of matches const [ firstMatch ] = results ; // Match info provided by each result
【文件预览】:
ripgrep-js-master
----.husky()
--------.gitignore(2B)
--------pre-commit(58B)
----package.json(1KB)
----__tests__()
--------rg.spec.ts(3KB)
----.eslintrc.json(324B)
----.github()
--------dependabot.yml(274B)
--------workflows()
----.prettierrc(27B)
----jest.config.js(70B)
----src()
--------types.ts(916B)
--------index.ts(2KB)
----tsconfig.json(153B)
----.gitignore(16B)
----CHANGELOG.md(1KB)
----README.md(1KB)
----yarn.lock(230KB)
----.eslintignore(62B)

网友评论