npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wait-cli

v1.0.0

Published

zero dependency commandline tool to orchestrate execution

Downloads

1,896

Readme

Wait CLI

zero dependency commandline tool to orchestrate execution

Installing

$ npm install -g wait-cli

Usage

$ await [options] <command> <...arguments>

tcp

Awaiting tcp connection(s) to specified addresses

Options:

  • -s, --sequenced - Next connection waits for complete previous connection
  • --not - Condition negation flag

Example: await tcp google.com:443

cmd

Awaiting finishing command execution

Options:

  • -r, --retry - retry on non zero exit code of command
  • -s, --sequenced - next command waits for complete previous command
  • --not - Condition negation flag

Example: await cmd "curl -sL https://my-domain.never/app-setup.sh | bash -" "app run" --retry --sequenced

exists

Awaiting existing specified path

Options:

  • -s, --sequenced - next existing check waits for complete previous existing check
  • -m, --mode - access mode of path r-read, w-write, e-execute
  • --not - Condition negation flag

Example: await exists "/var/database.pid" "/var/application.pid" --sequenced --mode r

network

Awaiting for network adapter

Options:

  • -m, --mac <mac address mask> - specify mac address mask
  • -i, --internal - network adapter should be internal
  • --not - Condition negation flag

Example: await network vmnet --mac 00:* --internal

time

Awaiting for specified seconds

Example: await time 20

More Await Examples

  • MongoDB - await tcp localhost:27017
  • MySQL - await tcp localhost:3306
  • MSSQL - await tcp localhost:1433
  • HTTP - await tcp localhost
  • HTTPS - await tcp localhost:443
  • Memcache - await tcp localhost:11211
  • Stopping MSSQL - await tcp --not localhost:1433
  • Downloading complete (even with errors) - await cmd "wget https://mydomain.com/superscript.sh"
  • Downloading complete (retry on fail) - await cmd "wget https://mydomain.com/superscript.sh" --retry
  • Script execution complete - await cmd "sh superscript.sh"
  • Downloading complete and success script execution - await cmd "wget https://mydomain.com/superscript.sh" "sh superscript.sh" --sequenced
  • 20 Seconds - await time 20

License

The MIT License Copyright (c) 2017-present Ivan Zakharchenko