2.1.2 • Published 3 years ago

regex-short v2.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

regex-short

Short constants for common regular expressions tests

Installation

yarn add regex-short

or

npm install regex-short --save

Basic usage

import {testEmail, testUUIDHash} from 'regex-short'

testEmail('example@domain.com') // true
testEmail('example@domain.c') // false

testUUIDHash('d7fddffb-44e6-4c90-b56e-0b1a45896739') // true

Home page

Props

//Common

testEmail,
testDomain,
testURL,
testPhone,
testHashTag,
testBCryptHash,
testSHA224,
testSHA256,
testSHA384,
testSHA512,
testJWTToken256,
testJWTToken384,
testJWTToken512,
testUUIDHash,
testIPAddress,
testMD5Hash,

// Digits

testDigits,
testNonDigits,
testStartWithDigit,
testStartWithDigits,
testEndWithDigit,

// Letters

testAlphanumeric,
testNonAlphanumeric,
testOnlyLetters,
testNonLetters,
testStartLetter,
testStartLetters,
testEndLetter,
testOnlyLowerCase,
testOnlyUpperCase,
2.1.2

3 years ago

2.0.3

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.0.4

3 years ago

2.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago