is-now

My delightful module

Usage no npm install needed!

<script type="module">
  import isNow from 'https://cdn.skypack.dev/is-now';
</script>

README

is-now Build StatusCoverage Status

compare times with the current time

Install

$ npm install --save is-now

Usage

var isNow = require('is-now');

isNow(new Date());
// true

API

isNow(time)

input

Required
Type: Date, moment, number

The time to compare to the current time, if it's a number it must be a unix timestamp.

License

MIT © Thomas Sileghem