uptime-extras

extra uptime functions

Usage no npm install needed!

<script type="module">
  import uptimeExtras from 'https://cdn.skypack.dev/uptime-extras';
</script>

README

uptime-extras

build status

A small module of extra uptime functions for calculating things such as lastRestart().

getUptimeDate()

Return the date calculated for this uptime. ie. The up-date

hasRestartedSince(lastRecordedTime)

Deterime if the server has restarted since lastRecordedTime.