is-night

1.0.0 • Public • Published

is-night

Is it night time?

const isNight = require('is-night');

const eightOhClock = new Date(2020, 9, 15, 20, 0, 0);
isNight(eightOhClock); // true

const threeFiftyNine = new Date(2020, 9, 15, 3, 59, 0);
isNight(threeFiftyNine); // false

Install

npm install is-night

License

BSD-2-Clause

Readme

Keywords

Package Sidebar

Install

npm i is-night

Weekly Downloads

3

Version

1.0.0

License

BSD-2-Clause

Unpacked Size

2 kB

Total Files

4

Last publish

Collaborators

  • matthewp