https://github.com/jinglong7/validate
Validate is a standard Deno module for validating string.
https://github.com/jinglong7/validate
deno denoland javascript typescript validate
Last synced: 5 months ago
JSON representation
Validate is a standard Deno module for validating string.
- Host: GitHub
- URL: https://github.com/jinglong7/validate
- Owner: Jinglong7
- Created: 2020-09-09T16:22:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T01:19:49.000Z (almost 4 years ago)
- Last Synced: 2025-05-05T19:23:39.583Z (5 months ago)
- Topics: deno, denoland, javascript, typescript, validate
- Language: TypeScript
- Homepage:
- Size: 178 KB
- Stars: 5
- Watchers: 2
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
⭐️ Please support us by giving a star! Thanks! ⭐️# Validate
Validate is a standard Deno module for validating string.
## 🎁 Features
* [x] isAfter
* [x] isAlpha
* [x] isAlphanumeric
* [x] isAscii
* [x] isBase32
* [x] isBase64
* [x] isBefore
* [x] isBIC
* [x] isBoolean
* [x] isBtcAddress
* [x] isByteLength
* [x] isCreditCard
* [x] isCurrency
* [x] isDataURI
* [x] isDate
* [x] isDecimal
* [x] isDivisibleBy
* [x] isEAN
* [x] isEmail
* [x] isEmpty
* [x] isEthereumAddress
* [x] isFloat
* [x] isFQDN
* [x] isFullWidth
* [x] isHalfWidth
* [x] isHash
* [x] isHexColor
* [x] isHexadecimal
* [x] isHsl
* [x] isIBAN
* [x] isIdentityCard
* [x] isIMEI
* [x] isIn
* [x] isInt
* [x] isIP
* [x] isIPRange
* [x] isISBN
* [x] isISIN
* [x] isISO31661Alpha2
* [x] isISO31661Alpha3
* [x] isISO8601
* [x] isISRC
* [x] isISSN
* [x] isJSON
* [x] isJWT
* [x] isLatLong
* [x] isLength
* [x] isLocale
* [x] isLowercase
* [x] isMACAddress
* [x] isMagnetURI
* [x] isMD5
* [x] isMimeType
* [x] isMobilePhone
* [x] isMongoId
* [x] isMultibyte
* [x] isNumeric
* [x] isOctal
* [ ] isPassportNumber
* [ ] isPort
* [ ] isPostalCode
* [ ] isRFC3339
* [ ] isRgbColor
* [ ] isSemVer
* [ ] isSlug
* [ ] isSurrogatePair
* [ ] isSvg
* [ ] isTaxID
* [ ] isURL
* [ ] isUUID
* [ ] isUppercase
* [ ] isVariableWidth
* [ ] isWhitelisted## 🔧 How to use
```ts
import { validate, isBoolean } from 'https://deno.land/x/validate@v0.4.0/mod.ts';
```## 💡 Usage
```ts
import { validate, isBoolean } from 'https://deno.land/x/validate@v0.4.0/mod.ts';console.log(validate.isAlpha('Validate')); // true
console.log(isBoolean('true')); // true
```## 📜 Changelog
Details changes for each release are documented in the [CHANGELOG.md](https://github.com/jinglong7/validate/blob/master/CHANGELOG.md).
## ❗ Issues
If you think any of the `Validate` can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.
## 💪 Contribution
We'd love to have your helping hand on contributions to `Validate` by forking and sending a pull request!
Your contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)
How to contribute:
- Open pull request with improvements
- Discuss ideas in issues
- Spread the word
- Reach out with any feedback## ✨ Contributors
## ⚖️ License
The MIT License [](https://opensource.org/licenses/MIT)