@rothzerg/validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@rothzerg/validator

npm (scoped) npm bundle size (minified)

Install

$ npm install @rothzerg/validator

Validators

isEmail(value:string)

import { isEmail } from '@rothzerg/validator'

isEmail('test@test.com')
=> 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

Readme

Keywords

none

Package Sidebar

Install

npm i @rothzerg/validator

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

337 kB

Total Files

26

Last publish

Collaborators

  • rothzerg