check-tool

1.0.5 • Public • Published

check-tool Build Status

Tired of passing it from project to project - put this simple set of functions to check variables into a package. Includes check of undefined / defined / defined and not null / defined and not empty / is number / is function is object

Install

$ npm install check-tool

Usage

var checkTool = require('check-tool')

if (checkTool.isDefined(varaiable)) {
	// do something...
}

if (checkTool.isNotNull(varaiable)) {
	// do something...
}

if (checkTool.isNotEmpty(varaiable)) {
	// do something...
}

if (checkTool.isEmpty(varaiable)) {
	// do something...
}

if (checkTool.isNotNaN(varaiable)) {
	// do something...
}

if (checkTool.isObject(varaiable)) {
	// do something...
}

if (checkTool.isFunction(varaiable)) {
	// do something...
}

if (checkTool.isNumber(varaiable)) {
	// do something...
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    74
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    74
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i check-tool

Weekly Downloads

74

Version

1.0.5

License

MIT

Unpacked Size

5.67 kB

Total Files

6

Last publish

Collaborators

  • vyarmak