1.3.1 • Published 6 months ago

season-of-the-year-with-hemisphere v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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
1.3.1

6 months ago

1.3.0

6 months ago

1.2.0

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago