0.0.8 • Published 6 years ago

is-this-correct v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

is-this-correct

Build Status

this-is-correct library is a light package of useful validation functions

is this a mail adress?
const {email} = require('is-this-correct')
email('testmail@mymailservices.com') // true
email('testmail@mymailservices.com.tr') // true
email('@mymailservices.com') // false
email('test@mymailservices') // false
is this least 6 character?
const {least6Char} = require('is-this-correct')
least6Char('123456') // true
least6Char('1234') // false
least6Char(123456) // true
least6Char(12345) // false
is this a function?
const {isFunction} = require('is-this-correct')
let testFnc = function () { }
isFunction(testFnc) // true
is this an empty string?
const {isStringEmpty} = require('is-this-correct')
let emptyString = ""
isStringEmpty(emptyString) // true

let str = "notempty"
isStringEmpty(str) // false
is this a number?
const {isNumber} = require('is-this-correct')
let nmr = 1
isNumber(nmr) // true
let str = "ds"
isNumber(str) // false
0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago