season-of-the-year-with-hemisphere
v1.3.1
Published
A simple library to determine the season of the year based on a date
Maintainers
Readme
Season of the Year
This library determines the season of the year based on a given date.
Installation
npm install season-of-the-year-with-hemisphereUsage with Hemisphere
You can specify the hemisphere ("north" or "south"). The default is "north":
const { getSeason } = require("season-of-the-year-with-hemisphere");
console.log(getSeason(new Date("2024-12-25"), "north")); // e.g., "Winter" in the northern hemisphere
console.log(getSeason(new Date("2024-12-25"), "south")); // e.g., "Summer" in the southern hemisphere