![]() Wait-on http-get://localhost:8000/foo & NEXT_CMD # wait for http 2XX GET Wait-on & NEXT_CMD # wait for https 2XX HEAD ![]() Wait-on & NEXT_CMD # wait for http 2XX HEAD Wait-on f1 f2 & NEXT_CMD # wait for both f1 and f2, the exec NEXT_CMD (Node.js v8 users can use v4 users can still use and older Node.jsĮngines, use file1 & NEXT_CMD # wait for file1, then exec NEXT_CMD Wait-on versions 4-6 requires Node.js 10+ Latest wait-on version 7+ requires Node.js 12+ This is useful in waiting for services to shutdown before continuing. Wait-on can also be used in reverse mode which waits for resources to NOT be available. Likewise wait-on will wait for period of time for other resources to remain available before triggering success.įor http(s) resources wait-on will check that the requests are returning 2XX (success) to HEAD or GET requests (after following any redirects). Wait-on will wait for period of time for a file to stop growing before triggering availability which is good for monitoring files that are being built. Cross-platform - runs everywhere Node.js runs (linux, unix, mac OS X, windows) Functionality is also available via a Node.js API. ![]() Wait-on is a cross-platform command line utility which will wait for files, ports, sockets, and http(s) resources to become available (or not available using reverse mode). Wait-on - wait for files, ports, sockets, http(s) resources ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |