1.0.0 • Published 4 years ago

delay-date v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

delay-date Travis CI Build Status

Delay a promise until a specified date.

NPM Badge

Install

npm install delay-date

Usage

const addTime = require("add-time");
const delayDate = require("delay-date");

bar();

await delayDate(addTime.now({ seconds: 1 }));

// Executed a second later
baz();

API

delayDate(date)

date

Type: Date | string | number

The date to wait for.

1.0.0

4 years ago

0.0.0

4 years ago