Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkrupinski/isitfriday
Have you ever wondered if it's Friday? Wonder no more!
https://github.com/rkrupinski/isitfriday
friday party typescript weekend
Last synced: about 1 month ago
JSON representation
Have you ever wondered if it's Friday? Wonder no more!
- Host: GitHub
- URL: https://github.com/rkrupinski/isitfriday
- Owner: rkrupinski
- Created: 2017-04-23T15:46:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T13:54:07.000Z (almost 2 years ago)
- Last Synced: 2024-04-29T06:45:56.086Z (8 months ago)
- Topics: friday, party, typescript, weekend
- Language: TypeScript
- Homepage:
- Size: 122 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# isitfriday
![Build status](https://github.com/rkrupinski/isitfriday/workflows/CI/badge.svg)
[![minified + gzip](https://badgen.net/bundlephobia/minzip/isitfriday)](https://bundlephobia.com/package/isitfriday)Have you ever wondered if it's Friday? Wonder no more!
![isitfriday](assets/isitfriday.gif)
## Installation
```
$ yarn add isitfriday
```## Usage
Programmatic:
```ts
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
```