Skip to content

Have you ever wondered if it's Friday? Wonder no more!

Notifications You must be signed in to change notification settings

rkrupinski/isitfriday

Repository files navigation

isitfriday

Build status minified + gzip

Have you ever wondered if it's Friday? Wonder no more!

isitfriday

Installation

$ yarn add isitfriday

Usage

Programmatic:

import isitfriday from 'isitfriday';

isitfriday();                      // boolean
isitfriday(new Date('2023-02-17')) // boolean
isitfriday('2023-02-17');          // boolean
isitfriday(1676592000000);         // boolean
isitfriday('xD');                  // Error

Via npx:

$ npx isitfriday

CLI (global):

$ yarn global add isitfriday
$ isitfriday

CLI (local):

$ ./node_modules/.bin/isitfriday