Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vali-date

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vali-date

Validate a date

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
513K
decreased by-9.86%
Maintainers
1
Weekly downloads
 
Created
Source

vali-date Build Status

Validate a date.

Install

$ npm install --save vali-date

Usage

const validate = require('vali-date');

validate('foo');
//=> false

validate('2015-12-15T12:00:00Z');
//=> true

validate('2015-12-15T12:00:00+01:00');
//=> true

API

validate(date)

Returns a boolean indicating if the date provided is valid or not.

date

Type: string

The date that should be validated.

License

MIT © Sam Verschueren

Keywords

FAQs

Package last updated on 15 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc