0.1.8 • Published 1 month ago
timeout-promise-wrapper v0.1.8
timeout-promise-wrapper
A simple timeout library for nodejs. It gives an promise based alternative to setTimeout and clearTimeout.
Installation
npm install timeout-promise-wrapper
Usage
const timeout = require("timeout-promise-wrapper");
await timeout(100); // waits 100ms