Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)