UNPKG

@itrocks/length

Version:

Decorators @Length, @MinLength, @MaxLength to enforce fixed or flexible string length limits on class properties

10 lines (7 loc) 760 B
[![npm version](https://img.shields.io/npm/v/@itrocks/length?logo=npm)](https://www.npmjs.org/package/@itrocks/length) [![npm downloads](https://img.shields.io/npm/dm/@itrocks/length)](https://www.npmjs.org/package/@itrocks/length) [![GitHub](https://img.shields.io/github/last-commit/itrocks-ts/length?color=2dba4e&label=commit&logo=github)](https://github.com/itrocks-ts/length) [![issues](https://img.shields.io/github/issues/itrocks-ts/length)](https://github.com/itrocks-ts/length/issues) [![discord](https://img.shields.io/discord/1314141024020467782?color=7289da&label=discord&logo=discord&logoColor=white)](https://25.re/ditr) # length Decorators @Length, @MinLength, @MaxLength to enforce fixed or flexible string length limits on class properties.