iso-639-1-class-validator
v1.0.0
Published
A [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) validator for the [class-validator](https://github.com/typestack/class-validator)
Downloads
3
Maintainers
Readme
iso-639-1-class-validator
A ISO-639-1 validator for the class-validator
Install
npm install iso-639-1-class-validator
Usage
class Database {
/**
* expect locale code, example: `zh`, `en`...
*/
@IsISO6391()
localeCode: string;
...
}