Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Uphold Validator.js

Extensive validations built on top of validator.js.
Extensive validations built on top of
[validator.js](https://github.com/guillaumepotier/validator.js).

Improvements over validator.js:
- extended set of asserts
- logging with debugnyan
- throwing specific errors on validation failures
Improvements over `validator.js`:

- [extended set of asserts](https://github.com/uphold/validator.js-asserts)
- logging with [debugnyan](https://github.com/uphold/debugnyan)
- throwing specific errors on validation failures
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really sure what this refers to exactly. It would be nice to add a link for additional context here as well.

For reference, I thought it could have something to do with validator.js-validate and/or validator.js-validate, but there doesn't seem to be any reference to them in this codebase. Any suggestions welcome.


## Install

Add to your package.json dependencies:
Install the package via `yarn`:

```sh
yarn add @uphold/validator.js
```

or via `npm`:

```sh
npm install @uphold/validator.js
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "index.js",
"author": "Uphold",
"license": "MIT",
"repository": "uphold/uphold-validator.js",
"scripts": {
"changelog": "uphold-scripts changelog $npm_package_version",
"lint": "uphold-scripts lint",
Expand Down