Skip to content
Node Doomsday Clock API
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
.editorconfig
.gitignore
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

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
You can’t perform that action at this time.