Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/angelxmoreno/class-validator-matches

Matches decorator for class-validator
https://github.com/angelxmoreno/class-validator-matches

Last synced: about 2 months ago
JSON representation

Matches decorator for class-validator

Awesome Lists containing this project

README

        

# class-validator-matches
Matches decorator for class-validator

[![Build Status](https://travis-ci.org/angelxmoreno/class-validator-matches.svg?branch=master)](https://travis-ci.org/angelxmoreno/class-validator-matches)
[![Coverage Status](https://coveralls.io/repos/github/angelxmoreno/class-validator-matches/badge.svg)](https://coveralls.io/github/angelxmoreno/class-validator-matches)
## Installation
### Yarn
```sh
yarn add class-validator-matches
```
### NPM
```sh
npm install class-validator-matches --save
```
## Usage
```ts
import { Matches } from "class-validator-matches";

export class Form {

password: string;

@Matches('password')
confirm_password: string;
}
```
## Test
```sh
npm run test
```