Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjarneo/is-tomorrow
Is the date tomorrow?
https://github.com/bjarneo/is-tomorrow
date tomorrow
Last synced: 3 days ago
JSON representation
Is the date tomorrow?
- Host: GitHub
- URL: https://github.com/bjarneo/is-tomorrow
- Owner: bjarneo
- Created: 2020-01-20T11:05:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T13:13:37.000Z (almost 5 years ago)
- Last Synced: 2024-08-10T07:27:51.318Z (3 months ago)
- Topics: date, tomorrow
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/is-tomorrow
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# isTomorrow
Is your date tomorrow?## WHY?
Because I really messed up the easy isTomorrow logic at work.## Install
```
$ npm i --save is-tomorrow
```## Usage
```js
import isTomorrow from 'is-tomorrow';const today = new Date();
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);isTomorrow(today); // false
isTomorrow(tomorrow); // true```
## License
MIT © [Bjarne Øverli](https://oeverli.win)