https://github.com/zemd/yarn-plugin-wait
https://github.com/zemd/yarn-plugin-wait
yarn-plugin yarn2
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zemd/yarn-plugin-wait
- Owner: zemd
- License: mit
- Created: 2021-09-05T19:08:50.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T10:13:04.000Z (over 4 years ago)
- Last Synced: 2025-07-08T08:08:24.758Z (11 months ago)
- Topics: yarn-plugin, yarn2
- Language: TypeScript
- Homepage:
- Size: 838 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yarn-plugin-wait
> Plugin that can wait
## Usage
Install the plugin:
```sh
yarn plugin import https://raw.githubusercontent.com/zemd/yarn-plugin-wait/main/bundles/%40yarnpkg/plugin-wait.js
```
Waiting for specific amount of time:
```sh
yarn wait 2s
yarn wait 10m
yarn wait "15s 50ms"
```
Waiting for specific amount of time and running command at the end:
```sh
yarn wait 2m -c 'echo "Hello World!"'
```
Waiting for the command to return exit code `0` if it doesn't come try after the timeout:
```sh
yarn wait 10s -c 'docker exec -it postgres pg_isready' -w
```
## License
yarn-plugin-wait is released under the MIT license.
## Donate
[](https://www.patreon.com/red_rabbit)