#sockets #http #wait #file-path

bin+lib wait-on

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

14 releases

0.0.14 Dec 17, 2024
0.0.13 Dec 15, 2024
0.0.12 Nov 14, 2024
0.0.10 Jun 10, 2024
0.0.3 Apr 8, 2024

#1927 in Network programming

Download history 289/week @ 2024-12-14 16/week @ 2024-12-21 14/week @ 2024-12-28 102/week @ 2025-01-04 29/week @ 2025-01-11 12/week @ 2025-01-18 1/week @ 2025-01-25 9/week @ 2025-02-01 22/week @ 2025-02-08 15/week @ 2025-02-15 13/week @ 2025-02-22 31/week @ 2025-03-01 7/week @ 2025-03-08 14/week @ 2025-03-15 57/week @ 2025-03-22 11/week @ 2025-03-29

90 downloads per month

MIT/Apache

23KB
238 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
~255K SLoC