#http-server #wait #http #sockets #file #command-line-tool #tcp-socket

bin+lib wait-on

Library and CLI Utility to wait on the availability of resources such as Files, HTTP Servers, Ports & Sockets

12 releases

0.0.12 Nov 14, 2024
0.0.11 Nov 14, 2024
0.0.10 Jun 10, 2024
0.0.4 May 22, 2024
0.0.3 Apr 8, 2024

#1812 in Web programming

Download history 8/week @ 2024-09-21 1/week @ 2024-09-28 223/week @ 2024-11-09 93/week @ 2024-11-16 27/week @ 2024-11-23 24/week @ 2024-11-30

367 downloads per month

MIT/Apache

23KB
339 lines

wait-on

Library and CLI Utility to wait on the availability of resources such as Files, HTTP Servers, Ports & Sockets

Crates.io Documentation Build Clippy Formatter

Installation

cargo install wait-on

Usage

Wait for a file to exist or exit with code 1 if 10m elapses waiting

wait-on -t 10m file /path/to/file

Wait for a HTTP Resource to respond

wait-on http GET https://example.com

Wait for a Socket to be available using TCP Protocol

wait-on tcp -i 127.0.0.1 -p 8080

License

This project is licensed under the MIT license and the Apache License 2.0.

Dependencies

~8–19MB
~253K SLoC