@cilladev/qutils
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Qutils

A collection of private util functions for my personal development.

Installation

Install the package into your project directory:

  npm i @cilladev/qutils

Utility Functions

1. delay
The `delay` function is used to introduce a delay in the execution of a program. It is commonly used in scenarios where you want to pause the execution of a program for a specific amount of time.

Parameters

  • milliseconds (integer): The number of milliseconds to delay the program execution.

Return Value

A promise that resolves after the specified delay.

Example Usage

import { delay } from "@cilladev/qutil"

async function sendRequest() {
  await delay(1000) // delay for 1 second

  //...
}

Package Sidebar

Install

npm i @cilladev/qutils

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

15.1 kB

Total Files

9

Last publish

Collaborators

  • priscilla-e