Socket
Socket
Sign inDemoInstall

retry-cli

Package Overview
Dependencies
3
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

retry-cli

Retry with exponential backoff for the command line.


Version published
Maintainers
1
Install size
111 kB
Created

Readme

Source

retry-cli

Command line interface for retrying other commands with exponential backoff.

Installation

npm install retry-cli

Based on

Just a command line interface to https://www.npmjs.com/package/retry

Example

-> % node cli.js -t 1000 -n 3 -- ls asdf
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory
ls: asdf: No such file or directory

Documentation

Usage: retry [OPTION] -- [COMMAND]

  -n, --retries=ARG      The maximum amount of times to retry the operation. Default is 10.
      --factor=ARG       The exponential factor to use. Default is 2.
  -t, --min-timeout=ARG  The number of milliseconds before starting the first retry. Default is 1000.
      --max-timeout=ARG  The maximum number of milliseconds between two retries. Default is Infinity.
      --randomize        Randomizes the timeouts by multiplying with a factor between 1 to 2. Default is false.
  -h, --help             display this help.

FAQs

Last updated on 20 Apr 2022

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc