open-index/open-npm huggingface dataset:
npm package: @fewbadboy/validator
Description: A library of data validators
Author: fewbadboy
Latest version: 1.0.8

# README

A minimal & powerful data validation library built with TypeScript.

## ✨ Features

- ✅ Zero dependency
- 📦 TypeScript ready (with types)
- 🔥 Easy to extend custom validators
- ⚙️ Works with any JS/TS framework

## install

```shell
# pnpm
pnpm install @fewbadboy/validator --registry=https://registry.npmmirror.com

# 升级最新依赖
pnpm up --latest
```

## 📘 API

- validUsername
- validPassword
- validProtocol
- validateIP
- validPort
- validURL
- validLowerCase
- validUpperCase
- validAlphabets
- validAlphaChinese
- validPhone
- validEmail
- validArray
- validSpace
- formatDateTime
- formatNumber
- formatRelativeTime

### Verify UI

- slideVerify 滑动验证
- choiceVerify 选择验证
- logicVerify 逻辑验证
- captchaVerify 验证码验证
- InvisibleCaptcha 无感验证