@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

/@rothzerg/validator/

    Package Sidebar

    Install

    npm i @rothzerg/validator

    Weekly Downloads

    4

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    337 kB

    Total Files

    26

    Last publish

    Collaborators

    • rothzerg