Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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?

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)