1.0.1 • Published 3 months ago

@miaooo/class-transformer-trim v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@miaooo/class-transformer-trim

version downloads license dependencies coveralls

DEPRECATED

This package has been deprecated. Please use @buka/class-transformer-extra instead.

A class transformer helper that trim the string.

Usage

import { Trim } from '@miaooo/class-transformer-trim';

// my.dto.ts
export MyDTO {
  @ApiProperty({ type: 'string' })
  @Trim()
  name: string;
}

Contributing & Development

If there is any doubt, it is very welcome to discuss the issue together. Please read Contributor Covenant Code of Conduct and CONTRIBUTING.