1.1.24 • Published 2 months ago
@currency-one/validators v1.1.24
Validators
Typescript collection of validators and regexp patterns
Installation
To install run:
npm i @currency-one/validators
or
yarn add @currency-one/validators
Basic usage with React and build systems (webpack, parcel etc.):
import { isNotEmptyStringValidator, isAccountNumberPattern } from '@currency-one/validators'
export const notEmptyValidator = (value) => {
return !isNotEmptyStringValidator(value) ? 'This field cant be empty' : ''
}
export const accountNumberPattern = (value) => {
return !isAccountNumberPattern(value) ? 'This field can contain only: letters, numbers and space' : ''
}
Documentation
See documentation for more details
1.1.24
2 months ago
1.1.19
10 months ago
1.1.22
8 months ago
1.1.21
9 months ago
1.1.20
9 months ago
1.1.16
2 years ago
1.1.15
2 years ago
1.1.18
2 years ago
1.1.17
2 years ago
1.1.12
3 years ago
1.1.11
3 years ago
1.1.10
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.0.17
4 years ago
1.1.0
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.9
4 years ago
1.0.10
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago