# delay-cmd

> Delay your commands on the command line using human intervals.

Latest version **1.0.6** (published 2021-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install delay-cmd
pnpm add delay-cmd
yarn add delay-cmd
bun add delay-cmd
```

Provides the command `delay-cmd`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-07-10 |
| First published | 2018-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Quinton Ashley |
| Maintainers | qashto |
| Keywords | cli, delay |

## Links

- npm: https://www.npmjs.com/package/delay-cmd
- Repository: https://github.com/quinton-ashley/delay-cmd
- Homepage: https://github.com/quinton-ashley/delay-cmd#readme
- Issues: https://github.com/quinton-ashley/delay-cmd/issues
- npm.io page: https://npm.io/package/delay-cmd

## Dependencies (2)

- [delay](https://npm.io/package/delay.md) ^2.0.0
- [human-interval](https://npm.io/package/human-interval.md) ^0.1.6

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-07-10
- 1.0.5 — 2021-07-10
- 1.0.4 — 2018-06-18
- 1.0.3 — 2018-06-04
- 1.0.1 — 2018-06-03
- 1.0.0 — 2018-06-03
- 0.0.8 — 2018-06-03
- 0.0.7 — 2018-06-03
- 0.0.6 — 2018-05-20
- 0.0.5 — 2018-05-15

## README

# delay-cmd

Delay your commands on the command line using human intervals.

### CLI Installation

```javascript
npm i delay-cmd -g
```

### CLI Usage

```javascript
delay-cmd five seconds
```

Put the command you want to delay after the `&&`.

```javascript
cd /c/path/to/yourProject
delay-cmd two hours && npm start
```

### node.js Usage

Must be used in an async function.

```javascript
const delayCmd = require("delay-cmd");
await delayCmd("five seconds");
```

I made `delay-cmd` as a CLI. For node.js use I recommend implementing this:

```javascript
//setup
const delay = require("delay");
const humanInterval = require("human-interval");

async function delayCmd(time) {
  console.log("waiting for" + time);
  await delay(humanInterval(time));
}

//usage
await delayCmd("five seconds");
```

### Tip me!

If you appreciate my work please tip me! Any amount is good. Thank you :)

Patreon: <https://www.patreon.com/qashto>  
Paypal: <https://www.paypal.me/qashto/5>

---
_Source: https://npm.io/package/delay-cmd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
