https://github.com/zerodevx/pretty-delay-cli
Delay execution for a given amount of seconds, but prettily
https://github.com/zerodevx/pretty-delay-cli
Last synced: 4 months ago
JSON representation
Delay execution for a given amount of seconds, but prettily
- Host: GitHub
- URL: https://github.com/zerodevx/pretty-delay-cli
- Owner: zerodevx
- License: isc
- Created: 2022-12-05T08:34:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-20T14:56:29.000Z (about 3 years ago)
- Last Synced: 2025-03-10T16:49:24.875Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pretty-delay-cli
> Delay execution for a given amount of seconds, but prettily

Cross-platform countdown timer - similar to the \*nix
[`sleep`]() command - but with pretty ascii-art.
Originally a fork of [`delay-cli`](https://github.com/sindresorhus/delay-cli), but now rewritten.
## Install
```
$ npm install pretty-delay-cli
```
## Usage
```
Usage
$ delay
Example
$ delay 4.3 && echo 🦄
```
### Programmatic usage
#### ESM
```js
import delay from 'pretty-delay-cli'
(async () => {
await delay(4.3) // delay for 4.3 seconds
...
})()
```
#### CJS
```js
// CJS
const delay = require('pretty-delay-cli')
delay(4.3).then(() => { // delay for 4.3 seconds
...
})
```
## Fancy-fonts
```
▄▄▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄
▐░░░░░░░░░▌ ▄█░░░░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
▐░█░█▀▀▀▀▀█░▌▐░░▌▐░░▌ ▀▀▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀█░▌▐░▌ ▐░▌
▐░▌▐░▌ ▐░▌ ▀▀ ▐░░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
▐░▌ ▐░▌ ▐░▌ ▐░░▌ ▐░▌ ▄▄▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌
▐░▌ ▐░▌ ▐░▌ ▐░░▌ ▄▄▄▄▄▄▄▄▄█░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░▌ ▐░▌ ▐░▌ ▐░░▌ ▐░░░░░░░░░░░▌ ▀▀▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀█░▌
▐░▌ ▐░▌▐░▌ ▐░░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌
▐░█▄▄▄▄▄█░█░▌▄▄▄▄█░░█▄▄▄ ▐░█▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄█░▌ ▐░▌
▐░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌
▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀
▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀▀▀ ▐░█▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌▐░█▀▀▀▀▀▀▀█░▌
▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌ ▐░▌ ▐░▌▐░▌ ▐░▌
▐░░░░░░░░░░░▌▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌
▀▀▀▀▀▀▀▀▀█░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░▌ ▐░░░░░░░░░░░▌
▐░▌▐░█▀▀▀▀▀▀▀█░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀█░▌ ▀▀▀▀▀▀▀▀▀█░▌
▐░▌▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌ ▐░▌
▄▄▄▄▄▄▄▄▄█░▌▐░█▄▄▄▄▄▄▄█░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄█░▌ ▄▄▄▄▄▄▄▄▄█░▌
▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌ ▐░▌ ▐░░░░░░░░░░░▌▐░░░░░░░░░░░▌
▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀
```
## Development
Standard Github
[contribution workflow](https://docs.github.com/en/get-started/quickstart/contributing-to-projects)
applies.
### Format, lint and test
```
$ npm run test
```
## License
ISC