1.1.26 • Published 11 months ago
@currency-one/validators v1.1.26
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.26
11 months ago
1.1.24
1 year ago
1.1.19
2 years ago
1.1.22
2 years ago
1.1.21
2 years ago
1.1.20
2 years ago
1.1.16
4 years ago
1.1.15
4 years ago
1.1.18
3 years ago
1.1.17
4 years ago
1.1.12
4 years ago
1.1.11
4 years ago
1.1.10
4 years ago
1.1.9
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.0.17
5 years ago
1.1.0
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.9
5 years ago
1.0.10
5 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago