Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 📄