hour-to-day-or-night

1.0.0 • Public • Published

hour-to-day-or-night

Hour to Day or Night logo

Commitizen friendly XO code style

NPM version Build Status Coveralls Status Dependency Status DevDependency Status

Convert hour to day or night: 8 → 'day'

Demo: vovanr.github.io/hour-to-day-or-night

Install

npm install --save hour-to-day-or-night

Usage

var hourToDayOrNight = require('hour-to-day-or-night');
 
hourToDayOrNight(8);
//=> 'day'
 
hourToDayOrNight(19);
//=> 'night'

API

hourToDayOrNight(hour)

Returns day or night.

hour

Type: number

From 0 to 23.

License

MIT © Vladimir Rodkin

Readme

Keywords

Package Sidebar

Install

npm i hour-to-day-or-night

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.22 kB

Total Files

5

Last publish

Collaborators

  • vovanr