Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 362 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 362 Bytes

humanized-part-of-day

Super small utility that returns the current part of the day (morning, afternoon, evening).

Installation:

npm install humanized-part-of-day

Usage:

const partOfDay = require("humanized-part-of-day");

console.log(partOfDay.getCurrent()); // Prints `MORNING`, `AFTERNOON` or `EVENING` depending on current part of day