Initial
This commit is contained in:
4
Client/node_modules/vali-date/index.js
generated
vendored
Executable file
4
Client/node_modules/vali-date/index.js
generated
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
module.exports = function (str) {
|
||||
return !isNaN(Date.parse(str));
|
||||
};
|
||||
21
Client/node_modules/vali-date/license
generated
vendored
Executable file
21
Client/node_modules/vali-date/license
generated
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sam Verschueren <sam.verschueren@gmail.com> (github.com/SamVerschueren)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
66
Client/node_modules/vali-date/package.json
generated
vendored
Executable file
66
Client/node_modules/vali-date/package.json
generated
vendored
Executable file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"_from": "vali-date@^1.0.0",
|
||||
"_id": "vali-date@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-G5BKWWCfsyjvB4E4Qgk09rhnCaY=",
|
||||
"_location": "/vali-date",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "vali-date@^1.0.0",
|
||||
"name": "vali-date",
|
||||
"escapedName": "vali-date",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/vinyl-fs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/vali-date/-/vali-date-1.0.0.tgz",
|
||||
"_shasum": "1b904a59609fb328ef078138420934f6b86709a6",
|
||||
"_spec": "vali-date@^1.0.0",
|
||||
"_where": "/home/nathan/Projects/Upsilon/UpsilonVsCodeLanguageServer/Client/node_modules/vinyl-fs",
|
||||
"author": {
|
||||
"name": "Sam Verschueren",
|
||||
"email": "sam.verschueren@gmail.com",
|
||||
"url": "github.com/SamVerschueren"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/SamVerschueren/vali-date/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Validate a date",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/SamVerschueren/vali-date#readme",
|
||||
"keywords": [
|
||||
"date",
|
||||
"validator",
|
||||
"iso8601",
|
||||
"moment",
|
||||
"format",
|
||||
"parse"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "vali-date",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/SamVerschueren/vali-date.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
44
Client/node_modules/vali-date/readme.md
generated
vendored
Executable file
44
Client/node_modules/vali-date/readme.md
generated
vendored
Executable file
@@ -0,0 +1,44 @@
|
||||
# vali-date [](https://travis-ci.org/SamVerschueren/vali-date)
|
||||
|
||||
> Validate a date.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save vali-date
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
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](http://github.com/SamVerschueren)
|
||||
Reference in New Issue
Block a user