@rothzerg/validator
v1.0.4
Published
[![npm (scoped)](https://img.shields.io/npm/v/@rothzerg/validator.svg)](https://www.npmjs.com/package/@rothzerg/validator) [![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@rothzerg/validator.svg)](https://www.npmjs.com/package/@roth
Downloads
40
Readme
@rothzerg/validator
Install
$ npm install @rothzerg/validator
Validators
isEmail(value:string)
import { isEmail } from '@rothzerg/validator'
isEmail('[email protected]')
=> true
isEmail('test')
=> false
isEmpty(value:string)
import { isEmpty } from '@rothzerg/validator'
isEmpty('text')
=> false
isEmpty('')
=> true
isNotEmpty(value:string)
import { isNotEmpty } from '@rothzerg/validator'
isNotEmpty('text')
=> true
isNotEmpty('')
=> false