2.0.0 • Published 6 years ago
doomsday-clock v2.0.0
doomsday-clock 
Get the time until midnight according to the Doomsday Clock.
Install
npm install doomsday-clockUsage
const doomsdayClock = require("doomsday-clock");
(async () => {
	const { seconds } = await doomsdayClock();
	console.log(`There are ${seconds} seconds 'till midnight!`);
})();API
doomsdayClock()
Return data
seconds
Type: number
The amount of seconds left.
source
Type: string
The statement that the minutes were sourced from.
time
Type: string
The amount of time left as represented as HH:mm:ss A.
Migrating from v1
- Node.js 10 or later is now required.
- Support for callbacks have been removed.
- The secondsvalue is now provided instead ofminutes.
