wfl

wait-for-localhost-cli

Wait for localhost to be ready from the command-line

Showing:

Popularity

Downloads/wk

627

GitHub Stars

107

Maintenance

Last Commit

1mo ago

Contributors

3

Package

Dependencies

2

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

wait-for-localhost-cli

Wait for localhost to be ready from the command-line

Useful if you need a local server to be ready to accept requests before executing the next command.

I personally use this to wait for webpack-dev-server to be ready before launching Electron.

Install

$ npm install --global wait-for-localhost-cli

Usage

$ wait-for-localhost --help

  Usage
    $ wait-for-localhost [port]

  Options
    --use-get  Use the HTTP-method GET instead of HEAD to test if the server is ready

  Example
    $ wait-for-localhost 8080 && echo 'Server is ready'

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100