Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umayr/is-date
minimal utility to check if provided string is a date.
https://github.com/umayr/is-date
Last synced: about 15 hours ago
JSON representation
minimal utility to check if provided string is a date.
- Host: GitHub
- URL: https://github.com/umayr/is-date
- Owner: umayr
- License: isc
- Created: 2014-11-28T06:08:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T06:23:12.000Z (almost 10 years ago)
- Last Synced: 2024-10-07T07:43:28.425Z (about 1 month ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-date
minimal utility to check if provided string is a date.
[![build status](https://secure.travis-ci.org/umayr/is-date.png)](http://travis-ci.org/umayr/is-date)
## Installation
```
npm install is-date --save
```## Usage
```
var isDate = require('is-date');isDate('2-2-12'); // true
isDate('20-2-12'); // true
isDate('2/2/12'); // true
isDate(2); // false
isDate(2.2); // false
isDate('somestring') // false
isDate('stringwith123') //false
```## Credits
[Umayr Shahid](https://github.com/umayr/)