@md_mark/is-leap-year
v1.0.1
Published
It is a simple npm package that allows you to check whether a given year is a leap year or a common year.
Downloads
2
Maintainers
Readme
��#� �@�m�d�_�m�a�r�k�/�i�s�-�l�e�a�p�-�y�e�a�r�
�
�
�
�I�t� �i�s� �a� �s�i�m�p�l�e� �n�p�m� �p�a�c�k�a�g�e� �t�h�a�t� �a�l�l�o�w�s� �y�o�u� �t�o� �c�h�e�c�k� �w�h�e�t�h�e�r� �a� �g�i�v�e�n� �y�e�a�r� �i�s� �a� �l�e�a�p� �y�e�a�r� �o�r� �a� �c�o�m�m�o�n� �y�e�a�r�.�
�
�
�
�#�#� �I�n�s�t�a�l�l�a�t�i�o�n�
�
�
�
�I�n�s�t�a�l�l� �w�i�t�h� �[�n�p�m�]�(�h�t�t�p�s�:�/�/�n�p�m�j�s�.�o�r�g�/�)�:�
�
�
�
� � � � �$� �n�p�m� �i�n�s�t�a�l�l� �@�m�d�_�m�a�r�k�/�i�s�-�l�e�a�p�-�y�e�a�r�
�
�
�
�#�#� �U�s�a�g�e�
�
�
�
��
��J�a�v�a�S�c�r�i�p�t�
�
�c�o�n�s�t� �i�s�L�e�a�p�Y�e�a�r� �=� �r�e�q�u�i�r�e�(�"�@�m�d�_�m�a�r�k�/�i�s�-�l�e�a�p�-�y�e�a�r�"�)�;�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�i�s�L�e�a�p�Y�e�a�r�(�2�0�2�3�)�)�;�
�
�/�/� �=�>� �2�0�2�3� �i�s� �c�o�m�m�o�n� �y�e�a�r�
�
�
�
�c�o�n�s�o�l�e�.�l�o�g�(�i�s�L�e�a�p�Y�e�a�r�(�2�0�2�0�)�)�;�
�
�/�/� �=�>� �2�0�2�0� �i�s� �l�e�a�p� �y�e�a�r�
�
�
��
�
�
�
�
�#�#� �A�P�I�
�
�
�
�#�#�#� ��i�s�L�e�a�p�Y�e�a�r�(�y�e�a�r�)�
�
�
�
�
�T�o� �c�h�e�c�k� �i�f� �t�h�e� �g�i�v�e�n� �y�e�a�r� �(��N�u�m�b�e�r�
�)� �o�r� �(��S�t�r�i�n�g�
�)� �i�s� �a� �l�e�a�p� �y�e�a�r�
�
�