New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

localhost-ready

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localhost-ready

Check to see if a local tcp server can be connected to. On success, return status code 0, otherwise status code 1.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

localhost-ready

Check to see if a local tcp server can be connected to. On success, return status code 0, otherwise status code 1.

Using in your project

Add as a dev dependency

npm install --save-dev localhost-ready
# or
yarn add --dev localhost-ready

Use it

From cli:

$(npm bin)/localhost-ready --port 8080 --timeout 60000 && echo "Server running"
# or
$(yarn bin)/localhost-ready --port 8080 --timeout 60000 && echo "Server running"

In your package.json (using concurrently, but any multi-runner like npm-run-all is fine, too):

{
  ...
  "scripts": {
    "dev": "run-your-dev-server",
    "testcafe": "localhost-ready --port 8080 --timeout 10000 && testcafe",
    "test:e2e": "concurrently \"yarn dev\" \"yarn testcafe\""
  }
}

FAQs

Package last updated on 06 Apr 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc