1.1.0 • Published 25 days ago
hodiny v1.1.0
Hodiny
Yet another synchronizable clock
Table of Contents
Install
$ npm install hodiny
Usage
const { Clock } = require("hodiny");
const clock = new Clock({
fetchTime() {
// Fetch the current time from your source of truth...
},
});
clock.ready.then(() => {
console.log(clock.now());
});
Author
Alexandre Breteau - @0xSeldszar
License
MIT © Alexandre Breteau