/hodiny

Yet another synchronizable clock

Primary LanguageJavaScriptMIT LicenseMIT

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