Commit 394587d4 authored by Jaap Karan Singh's avatar Jaap Karan Singh

Updated readme and bumped version

parent fc611a78
{
"name": "ht_jsonschema-validator",
"version": "0.0.1",
"version": "0.0.2",
"description": "jsonschema validator with custom types and attributes",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "./node_modules/.bin/mocha --bail"
},
"author": "Jaap Karan Singh <jksdua@gmail.com>",
"dependencies": {
"jsonschema": "~0.4.0",
"mongoskin": "~0.6.1",
"lodash": "~2.4.1"
},
"devDependencies": {
"chai": "^1.9.1",
"mocha": "^1.20.1",
"monk": "^0.9.0"
}
}
......@@ -4,8 +4,30 @@ JSON Schema Validator
jsonschema validator with custom types and attributes
Usage
-----
```js
var validator = require('jsonschema-validator').validator;
// regexp
validator.validate(/abc/, { type: 'regexp' });
// error
validator.validate(new Error(), { type: 'error' });
// objectid
validator.validate('123456789012345678901234', { type: 'objectId' });
```
Changelog
---------
### v0.0.2
- Removed dependency on `mongoskin`
- Added some tests
- Removed shrinkwrap
### v0.0.1
- Initial commit
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment