npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

minutes-to-midnight

0.2.0 • Public • Published

Minutes to Midnight

Small Node/Javascript library to get the current time on the Doomsday clock from the Bulletin of the Atomic Scientists.

Usage

$ npm install minutes-to-midnight
var M2M = require('minutes-to-midnight');

APIs return promises.

// Get number of minutes to midnight
new M2M().get()
    .then(console.log) 
    .catch(console.error);
// 3 
// Get current time on the Doomsday Clock.
new M2M().getTime()
    .then(console.log)
    .catch(console.error);
// 11:57 PM

install

npm i minutes-to-midnight

Downloadsweekly downloads

0

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability