Skip to content

walidsa3d/commonchecks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

commonchecks

downloads version license

common checks

build status

Installation

This module is installed via npm:

$ npm install commonchecks

Example Usage

var is = require('commonchecks');

API

  • is.File - returns true if variable is a valid file path
  • is.Dir - returns true if variable is a valid directory path
  • is.Array - returns true if variable is an array
  • is.Integer - returns true if variable is an integer
  • is.Float - returns true if variable is a float
  • is.Number - returns true if variable is a number
  • is.String - returns true if variable is a string
  • is.LowerCase - returns true if variable is a lowercase string
  • is.UpperCase - returns true if variable is an uppercase string
  • is.Regex - returns true if variable is a regex expression
  • is.URL - returns true if variable is an url
  • is.EmailAddress - returns true if variable is an email address
  • is.IPAddress - returns true if variable is an IP address
  • is.MacAddress - returns true if variable is a mac address