@ameganix/sleep

1.0.2 • Public • Published

Sleep

Interrupts execution for the specified number of ms

Installing

Package manager

Using npm:

$ npm install @ameganix/sleep

Using yarn:

$ yarn add @ameganix/sleep

Once the package is installed, you can import the function using require approach:

const sleep = require('@ameganix/sleep');

Example

await sleep(1000);

/@ameganix/sleep/

    Package Sidebar

    Install

    npm i @ameganix/sleep

    Weekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    1.02 kB

    Total Files

    3

    Last publish

    Collaborators

    • ameganix