GithubHelp home page GithubHelp logo

validatorjs / validator-deno Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 6.0 245 KB

Official Port of validatorjs to deno

License: MIT License

TypeScript 100.00%
deno open-source typescript validator validatorjs

validator-deno's People

Contributors

parasg1999 avatar rishabagarwal avatar rubiin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

validator-deno's Issues

formatting issues

@rubiin We need a way to the maintain the format of the code. Changing tabs/spaces to each other creates large unnecessary diffs and I think our editor configuration is playing a role here.

Track progress

This is used to track all the validators that has been ported successfully . Feel free to send in any PR which ports the validators which are not ticked below

  • isAfter
  • isAlpha
  • isAlphanumeric
  • isAscii
  • isBIC
  • isBase32
  • isBase64
  • isBefore
  • isBoolean
  • isBtcAddress
  • isByteLength
  • isCreditCard
  • isCurrency
  • isDataURI
  • isDate
  • isDecimal
  • isDivisibleBy
  • isEAN
  • isEmail
  • isEmpty
  • isEthereumAddress
  • isFQDN
  • isFloat
  • isFullWidth
  • isHSL
  • isHalfWidth
  • isHash
  • isHexColor
  • isHexadecimal
  • isIBAN
  • isIP
  • isIPRange
  • isISBN
  • isISIN
  • isISO31661Alpha2
  • isISO31661Alpha3
  • isISO8601
  • isISRC
  • isISSN
  • isIdentityCard
  • isIn
  • isInt
  • isJSON
  • isJWT
  • isLatLong
  • isLocale
  • isLowercase
  • isMACAddress
  • isMagnetURI
  • isMimeType
  • isMobilePhone
  • isMongoId
  • isMultibyte
  • isNumeric
  • isOctal
  • isPassportNumber
  • isPort
  • isPostalCode
  • isRFC3339
  • isRgbColor
  • isSemVer
  • isSlug
  • isSurrogatePair
  • isURL
  • isUUID
  • isUppercase
  • isVariableWidth
  • isWhitelisted

Won't work on

  • isLength (deprecated)
  • isMD5 (won't include)

Reference in deno website

@rubiin
I was wondering if this repository could be added to the deno website along with the word "official" in the description. Serves people in looking for what they need.

Update url from default import in docs

The last version of the mod.ts url isn't updated in the docs with brings errors when using a lot of the functions. Hope you can update this soon so there are not many sad early adopters of deno

Number of tests in continuous integration

@rubiin At the moment we are running 9 tests each time. Since deno uses semantic versioning, I don't think it is necessary to test for 1.0.0 as well as 1.0.1 and 1.0.2 since these are not major upgrades, otherwise we wouldn't be able to run that many tests in the future.

Overwrite isJWT?

@rubiin I added isJWT but I think you have accidentally overwritten that when merging. The implementation was changed. Please confirm.

isCreditCard refractoring

@rubiin I think we should reconsider isCreditCard method and rename it to isPayCard since it is impossible to tell the card type using number without using any APIs which is out of the scope of this library.

update documentation

so we have managed to get most of the validators ported. Since the documenation is not updated, i would like to update them .
Note: also mention the available options for each validator

Use this to check README

  • isAfter
  • isAlpha
  • isAlphanumeric
  • isAscii
  • isBIC
  • isBase32
  • isBase64
  • isBefore
  • isBoolean
  • isBtcAddress
  • isByteLength
  • isCreditCard
  • isCurrency
  • isDataURI
  • isDate
  • isDecimal
  • isDivisibleBy
  • isEAN
  • isEmail
  • isEmpty
  • isEthereumAddress
  • isFQDN
  • isFloat
  • isFullWidth
  • isHSL
  • isHalfWidth
  • isHash
  • isHexColor
  • isHexadecimal
  • isIBAN
  • isIP
  • isIPRange
  • isISBN
  • isISIN
  • isISO31661Alpha2
  • isISO31661Alpha3
  • isISO8601
  • isISRC
  • isISSN
  • isIdentityCard
  • isIn
  • isInt
  • isJSON
  • isJWT
  • isLatLong
  • isLocale
  • isLowercase
  • isMACAddress
  • isMagnetURI
  • isMimeType
  • isMobilePhone
  • isMongoId
  • isMultibyte
  • isNumeric
  • isOctal
  • isPassportNumber
  • isPort
  • isPostalCode
  • isRFC3339
  • isRgbColor
  • isSemVer
  • isSlug
  • isSurrogatePair
  • isURL
  • isUUID
  • isUppercase
  • isVariableWidth
  • isWhitelisted

Won't work on

  • isLength (deprecated)
  • isMD5 (won't include)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.