https://github.com/toddtreece/rg-imports
https://github.com/toddtreece/rg-imports
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/toddtreece/rg-imports
- Owner: toddtreece
- Created: 2020-02-17T14:58:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T03:11:43.000Z (over 6 years ago)
- Last Synced: 2025-02-08T20:30:39.504Z (over 1 year ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rg-imports
Recursively find files that `import` a file and its dependents using [ripgrep].
## Installation
This package expects that `rg` with be available in your `$PATH`.
```
npm i -g rg-imports
```
## Usage
```
$ rg-imports --help
rg-imports [options]
Recursively find imports of a file and its dependents.
Positionals:
file Target file [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--json JSON output [boolean] [default: false]
--directory, --dir Directory to search [string] [default: "/Users/todd"]
```
## License
Copyright (c) 2020 Todd Treece. Licensed under the MIT license.
[ripgrep]: https://github.com/BurntSushi/ripgrep