Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/foreach-dir
Run a command inside each directory serially.
https://github.com/stagas/foreach-dir
Last synced: 14 days ago
JSON representation
Run a command inside each directory serially.
- Host: GitHub
- URL: https://github.com/stagas/foreach-dir
- Owner: stagas
- License: mit
- Created: 2022-05-06T04:26:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-30T23:23:45.000Z (over 2 years ago)
- Last Synced: 2024-09-14T16:25:40.229Z (2 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
foreach-dirRun a command inside each directory serially.
npm i foreach-dir -g
pnpm add foreach-dir -g
yarn global add foreach-dir
## API
#
Options
src/runner.ts#L7
# constructor
(options) src/runner.ts#L18
command
= []
src/runner.ts#L10 string []
concurrency
= ...
src/runner.ts#L12 number
dirs
= []
src/runner.ts#L8 string []
dryRun
= false
src/runner.ts#L16 boolean
newer
= ''
src/runner.ts#L14 string
run
(options) src/runner.ts#L23
## Credits
- [decarg](https://npmjs.org/package/decarg) by [stagas](https://github.com/stagas) – decorator based cli arguments parser
## Contributing
[Fork](https://github.com/stagas/foreach-dir/fork) or [edit](https://github.dev/stagas/foreach-dir) and submit a PR.
All contributions are welcome!
## License
MIT © 2022 [stagas](https://github.com/stagas)