Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Byndyusoft/class-validator-extended
Additional decorators for class-validator and class-transformer
https://github.com/Byndyusoft/class-validator-extended
class-transformer class-validator decorators nodejs typescript
Last synced: 2 months ago
JSON representation
Additional decorators for class-validator and class-transformer
- Host: GitHub
- URL: https://github.com/Byndyusoft/class-validator-extended
- Owner: Byndyusoft
- License: apache-2.0
- Created: 2021-07-31T05:03:26.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-03T12:02:24.000Z (3 months ago)
- Last Synced: 2024-07-08T02:27:21.318Z (3 months ago)
- Topics: class-transformer, class-validator, decorators, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 213 KB
- Stars: 4
- Watchers: 12
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# class-validator-extended
[![npm@latest](https://img.shields.io/npm/v/@byndyusoft/class-validator-extended/latest.svg)](https://www.npmjs.com/package/@byndyusoft/class-validator-extended)
[![test workflow](https://github.com/Byndyusoft/class-validator-extended/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/Byndyusoft/class-validator-extended/actions/workflows/test.yaml)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)Additional decorators for class-validator and class-transformer
## Requirements
- Node.js v12 LTS or later
- npm or yarn## Install
```bash
npm install @byndyusoft/class-validator-extended class-validator class-transformer reflect-metadata
```or
```bash
yarn add @byndyusoft/class-validator-extended class-validator class-transformer reflect-metadata
```## Usage
### Decorators
#### class-validator
- [AtLeastOneDefined](./src/decorators/validators/atLeastOneDefined.ts)
- [IsNullable](./src/decorators/validators/isNullable.ts)
- [IsIntString](./src/decorators/validators/math/isIntString.ts)
- [LessThan](./src/decorators/validators/math/lessThan.ts)
- [LessThanOrEqualTo](./src/decorators/validators/math/lessThanOrEqualTo.ts)
- [GreaterThan](./src/decorators/validators/math/greaterThan.ts)
- [GreaterThanOrEqualTo](./src/decorators/validators/math/greaterThanOrEqualTo.ts)#### class-transformer
- [TransformToArray](./src/decorators/transformers/transformToArray.ts)
- [TransformToBoolean](./src/decorators/transformers/transformToBoolean.ts)
- [TransformToDate](./src/decorators/transformers/transformToDate.ts)
- [TransformToNumber](./src/decorators/transformers/transformToNumber.ts)## Maintainers
- [@Byndyusoft/owners](https://github.com/orgs/Byndyusoft/teams/owners) <>
- [@Byndyusoft/team](https://github.com/orgs/Byndyusoft/teams/team)## License
This repository is released under version 2.0 of the
[Apache License](https://www.apache.org/licenses/LICENSE-2.0).