humanized-part-of-day
v1.0.0
Published
Super small utility that returns the current part of the day (morning, afternoon, evening).
Downloads
2
Maintainers
Readme
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