@ellentorg/consequatur-eveniet-asperiores
v1.0.22
Published
An uncomplicated async sleep function for node.js.
Downloads
1,246
Maintainers
Keywords
Readme
Async Sleep for Node.js
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 v0.0.1 or later
npm install @ellentorg/consequatur-eveniet-asperiores --save
# For CommonJS, use v0.0.1
npm install @ellentorg/[email protected] --save
Usage
import asyncSleep from '@ellentorg/consequatur-eveniet-asperiores'
await asyncSleep(1000) // sleep for 1s
License
MIT