Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michael-spengler/sleep
🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
https://github.com/michael-spengler/sleep
sleep
Last synced: 26 days ago
JSON representation
🦕 module for sleep. You can sleep for a specific amount of time or you can sleep for a random amount of time with this.
- Host: GitHub
- URL: https://github.com/michael-spengler/sleep
- Owner: michael-spengler
- Created: 2020-08-18T09:32:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T13:24:13.000Z (11 months ago)
- Last Synced: 2024-05-23T00:15:38.137Z (6 months ago)
- Topics: sleep
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sleep
## Usage Example
```ts
import { sleep } from "https://deno.land/x/sleep/mod.ts"console.log('I should sleep')
await sleep(5)
console.log('Good Morning :)')// Advanced Usage
// import { sleepRandomAmountOfSeconds } from "https://deno.land/x/sleep/mod.ts"// console.log('I should sleep')
// await sleepRandomAmountOfSeconds(2, 4)
// console.log('Good Morning :)')```
## Trigger Usage Example
```sh
deno run https://deno.land/x/sleep/usage-example.ts
```## Trigger Test Execution
```sh
deno test https://deno.land/x/sleep/test.ts
```## Donations
Thanks to [Freedom Cash](https://FreedomCash.org), we are already free.
If you want to donate, you might consider donating to the [otherparty.co.uk](https://www.otherparty.co.uk/donate-crypto-the-other-party) to ensure people do not need to donate to victims but rather donate successfully to problem solvers.
![direct-democracy](https://github.com/michael-spengler/sleep/assets/145258627/fe97b7da-62b4-4cf6-9be0-7b03b2f3095a)