Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 16 days 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 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T00:20:22.000Z (6 months ago)
- Last Synced: 2024-10-22T12:01:07.556Z (17 days 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
[![CodeCov](https://codecov.io/gh/UltiRequiem/leap_year_utils/branch/main/graph/badge.svg)](https://app.codecov.io/gh/UltiRequiem/leap_year_utils)
[![Deno Doc](https://doc.deno.land/badge.svg)](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 📄