New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simple-async-sleep

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-async-sleep

An uncomplicated async sleep function for node.js.

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
197
3.14%
Maintainers
1
Weekly downloads
 
Created
Source

Async Sleep for Node.js

Main repo: https://github.com/huned/nodejs-async-sleep

An uncomplicated async sleep function for node.js.

BREAKING CHANGE for v1.0.3+ v1.0.3+ is an es6 module. You must use it with import syntax. If your project uses the CommonJS require syntax, you should use v1.0.2.

Overview

Features:

  • uncomplicated
  • no dependencies or bloat - it's literally one line of code
  • familiar interface
  • ESM

Install

# For ESM, use v1.0.3 or later
npm install simple-async-sleep --save

# For CommonJS, use v1.0.2
npm install simple-async-sleep@1.0.2 --save

Usage

import asyncSleep from 'simple-async-sleep'
await asyncSleep(1000) // sleep for 1s

Author

Huned Botee

License

MIT

Keywords

sleep

FAQs

Package last updated on 05 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts