Socket
Book a DemoInstallSign in
Socket

wait-for-localhost-cli

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-for-localhost-cli

Wait for localhost to be ready from the command-line

Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
1.6K
15.41%
Maintainers
1
Weekly downloads
 
Created
Source

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'
  • wait-for-localhost - API for this module
  • delay-cli - Delay execution for a given amount of seconds

Keywords

cli-app

FAQs

Package last updated on 15 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts