Skip to content

Commit 1a06fc8

Browse files
committed
Initial commit.
0 parents  commit 1a06fc8

7 files changed

Lines changed: 91 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea/
2+
.node_modules/
3+
.DS_Store

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright (c) 2014 Fantasy Shao <fantasyshao@icloud.com>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the 'Software'), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
node-validator
2+
------
3+
4+
String validator for more.
5+
6+
## Install
7+
8+
```
9+
[sudo] npm install is-valid [--save]
10+
```
11+
12+
## Usage
13+
14+
### Node.js
15+
16+
```
17+
var validator = require('is-valid');
18+
```
19+
20+
## License
21+
22+
The MIT License

bin/is-valid

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env/node
2+

index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
*
3+
* index
4+
*
5+
* @description
6+
* @author Fantasy <fantasyshao@icloud.com>
7+
* @create 2014-09-08
8+
* @update 2014-09-08
9+
*/
10+
11+
module.exports = require('./lib');

lib/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
*
3+
* index
4+
*
5+
* @description
6+
* @author Fantasy <fantasyshao@icloud.com>
7+
* @create 2014-09-08
8+
* @update 2014-09-08
9+
*/
10+

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "is-valid",
3+
"version": "0.0.1",
4+
"description": "String validator for more",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git@github.com:SFantasy/node-validator"
12+
},
13+
"keywords": [
14+
"validate",
15+
"validator",
16+
"valid",
17+
"string"
18+
],
19+
"author": "Fantasy <fantasyshao@icloud.com>",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/SFantasy/node-validator/issues"
23+
},
24+
"homepage": "https://github.com/SFantasy/node-validator"
25+
}

0 commit comments

Comments
 (0)