Socket
Socket
Sign inDemoInstall

check-leap-year

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    check-leap-year

Check if a year is leap or not


Version published
Weekly downloads
7
Maintainers
1
Install size
5.91 kB
Created
Weekly downloads
 

Readme

Source

isLeapYear

XO code style

This package was done for UltiRequiem/leap-year-api.

Install

npm install check-leap-year

Or use a CDN service:

Usage

You can see examples of use in test.js

import isLeapYear from "check-leap-year";

console.log(isLeapYear());
console.log(isLeapYear(2024));
console.log(isLeapYear(new Date()));
console.log(isLeapYear(new Date("12-10-2024")));
console.log(isLeapYear("12-10-2024"));

Licence

Released under the MIT Licence.

Keywords

FAQs

Last updated on 22 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc