Skip to content

yuzu441/is-ulid

Repository files navigation

is-ulid

A library validating ulid with class-validator. Inspired by validator.js(uuid validation) and class-validator(uuid decorator).

Installation

npm -S @yuzu441/is-ulid

# or

yarn add @yuzu441/is-ulid

How to use

import { IsULID } from '@yuzu441/is-ulid'
class Sample {
  @IsULID()
  id: string
}