https://github.com/orlin/wait-up
get / exit on-up
https://github.com/orlin/wait-up
Last synced: 2 months ago
JSON representation
get / exit on-up
- Host: GitHub
- URL: https://github.com/orlin/wait-up
- Owner: orlin
- Created: 2014-12-11T17:43:53.000Z (over 10 years ago)
- Default Branch: active
- Last Pushed: 2014-12-23T19:46:48.000Z (over 10 years ago)
- Last Synced: 2025-03-23T06:38:50.594Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wait-up
[](https://www.npmjs.org/package/wait-up)
Waits for http servers to come up with a preferably `200` ok status.
Thanks to [`on-up`](https://github.com/orlin/on-up).## Use by Example
* $ `wait-up` will try / wait to get `http://localhost`
* $ `wait-up http://127.0.0.1:8080/location` - takes a provided uri
* $ `wait-up /another/location` with `http://localhost` assumed by `on-up`The script will exit with statuscode `0`,
only if a `200` response status code was got.
Otherwise it will be an error - `1`.## License
[MIT](http://orlin.mit-license.org)