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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-27T06:34:57.000Z (4 months ago)
- Last Synced: 2025-04-29T22:37:47.838Z (2 months ago)
- Topics: class-transformer, class-validator, decorators, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 63.5 KB
- Stars: 4
- Watchers: 12
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# class-validator-extended
[](https://www.npmjs.com/package/@byndyusoft/class-validator-extended)
[](https://github.com/Byndyusoft/class-validator-extended/actions/workflows/test.yaml)
[](https://github.com/prettier/prettier)
[](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).