1.3.1 • Published 6 months ago
season-of-the-year-with-hemisphere v1.3.1
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-hemisphere
Usage 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