# mrt-delay

> A package to add a delay (in ms) in between your javascript code..!!

Latest version **1.0.5** (published 2023-05-28) · ISC license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2023-05-28 |
| First published | 2023-05-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mritunjay |
| Maintainers | mrt_14_august |
| Keywords | "mrt-delay" |

## Links

- npm: https://www.npmjs.com/package/mrt-delay
- npm.io page: https://npm.io/package/mrt-delay

## Recent versions

- 1.0.5 (latest) — 2023-05-28
- 1.0.4 — 2023-05-28
- 1.0.3 — 2023-05-28
- 1.0.2 — 2023-05-28
- 1.0.0 — 2023-05-28

## README

mrt-delay

The "mrt-delay" package allows you to add a runtime delay in your code execution. This can be useful when you want to introduce a pause or delay between certain parts of your code.
Installation

To install the "mrt-delay" package, run the following command:


    npm install mrt-delay

Usage

    Require the package in your code:

    

    const mrt_delay = require('mrt-delay').mrt_delay;

Use it inside your async function:


    async function foo() {
     /*
       {
         do some stuff
       }
     */

     let response = await mrt_delay(2000);

     /*
       {
         do some stuff after a delay of 2 seconds
       }
     */

     console.log(response);
}

     foo();

In the above example, the mrt_delay function is called with the desired delay duration in milliseconds. The code execution will pause for the specified duration before proceeding to the next line.

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