Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/angelxmoreno/class-validator-matches
- Owner: angelxmoreno
- Created: 2020-08-02T08:51:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T22:28:37.000Z (over 1 year ago)
- Last Synced: 2024-07-13T03:23:32.556Z (2 months ago)
- Language: TypeScript
- Size: 446 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
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
```