This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

is-today

2.0.1 • Public • Published

is-today Build Status

Check if a date is today with optional conversion to date and time travel.

Install

$ npm install --save is-today

Usage

var isToday = require('is-today');
 
isToday(new Date());
//=> true
 
isToday('2015-08-19', {convert: true});
//=> true
 
isToday('1997-01-11', {convert: true, scope: new Date('1997-01-01')});
//=> true

API

isToday(date, [options])

date

Required
Type: Date

options

Type: object Default: {}

keys on options

Type: convert Default: boolean

if true convert first parameter into a date object

Type: scope Default: new Date()

i can hack you back in time...

License

MIT © Ulrik Augustsson

Readme

Keywords

Package Sidebar

Install

npm i is-today

Weekly Downloads

1

Version

2.0.1

License

MIT

Last publish

Collaborators

  • nivanson
  • ulrikstrid