minutes-to-midnight
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Minutes to Midnight

Very small Node/Javascript library with the current time on the Doomsday clock from the Bulletin of the Atomic Scientists.

Usage

$ npm install minutes-to-midnight
const m2m = require('minutes-to-midnight');
 
m2m.getSeconds(); // 100 (number)
m2m.getMinutes(); // 1 (number)
m2m.getFractionalMinutes(); // 1.6666666666666667 (number)
 
m2m.getTimeToMidnight(); // '100 seconds' (string)
m2m..getTime(); // '11:58:20 PM' (string)

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i minutes-to-midnight

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.54 kB

    Total Files

    6

    Last publish

    Collaborators

    • mattbierner