common checks
This module is installed via npm:
$ npm install commonchecks
var is = require('commonchecks');
is.File
- returns true if variable is a valid file pathis.Dir
- returns true if variable is a valid directory pathis.Array
- returns true if variable is an arrayis.Integer
- returns true if variable is an integeris.Float
- returns true if variable is a floatis.Number
- returns true if variable is a numberis.String
- returns true if variable is a stringis.LowerCase
- returns true if variable is a lowercase stringis.UpperCase
- returns true if variable is an uppercase stringis.Regex
- returns true if variable is a regex expressionis.URL
- returns true if variable is an urlis.EmailAddress
- returns true if variable is an email addressis.IPAddress
- returns true if variable is an IP addressis.MacAddress
- returns true if variable is a mac address