Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 813 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 813 Bytes

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