https://github.com/ultirequiem/leap_year_utils
🍀 Utilities for working with Leap Years
https://github.com/ultirequiem/leap_year_utils
browser deno javascript leap-year npm npm-package typescript
Last synced: about 1 year ago
JSON representation
🍀 Utilities for working with Leap Years
- Host: GitHub
- URL: https://github.com/ultirequiem/leap_year_utils
- Owner: UltiRequiem
- License: mit
- Created: 2022-03-22T19:09:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T00:20:22.000Z (about 2 years ago)
- Last Synced: 2025-05-07T23:49:04.355Z (about 1 year ago)
- Topics: browser, deno, javascript, leap-year, npm, npm-package, typescript
- Language: TypeScript
- Homepage: http://ulti.js.org/leap_year_utils
- Size: 25.4 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# leap_year_utils
[](https://app.codecov.io/gh/UltiRequiem/leap_year_utils)
[](https://doc.deno.land/https/deno.land/x/leap_year_utils/mod.ts)
Utilities for working with
[Leap Years](https://github.com/UltiRequiem/leap-year).
## Usage
The API is the same on all this platforms ✔️
### [Deno 🦕](https://deno.land/x/leap_year_utils)
```javascript
import { leapYearsInRange } from "https://deno.land/x/leap_year_utils/mod.ts";
leapYearsInRange(2000, 2020); //=> [ 2004, 2008, 2012, 2016, 2020]
```
### [Node.js 🐢🚀](https://npmjs.com/package/leap-year-utils)
```javascript
import { leapYearsInRange } from "leap-year-utils";
```
### [Browser 🕸](https://developer.mozilla.org/en-US/docs/Glossary/Browser)
Eg. [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
▶ [SkyPack](https://cdn.skypack.dev/leap-year-utils) _/_
[script tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script) ▶
[JSDelivr](https://cdn.jsdelivr.net/npm/leap-year-utils).
## Documentation
Is hosted on
[Deno Doc](https://doc.deno.land/https://deno.land/x/leap_year_utils/mod.ts) 📄
## Contributing
If you have an idea for a new utility make an issue or a pull request please!
## Related
- [leap_year](https://github.com/UltiRequiem/leap_year_utils): The core of this
module.
- [parse_datelike](https://github.com/UltiRequiem/parse_datelike): Parse a
number/string/date to a number/string/date.
- [leap-year-api](https://github.com/UltiRequiem/leap-year-api): A REST API to
know if a year is leap or not.
## Support
Open an Issue, I will check it a soon as possible 👀
If you want to hurry me up a bit
[send me a tweet](https://twitter.com/UltiRequiem) 😆
Consider [supporting me on Patreon](https://patreon.com/UltiRequiem) if you like
my work 🚀
Don't forget to start the repo ⭐
## Licence
MIT License 📄