# check-tool

> Simple set of functions to check variables. Includes check of undefined / defined / defined and not null / defined and not empty / is number / is function is object

Latest version **1.0.5** (published 2018-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install check-tool
pnpm add check-tool
yarn add check-tool
bun add check-tool
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-03-06 |
| First published | 2017-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Viktor Yarmak |
| Maintainers | vyarmak |
| Keywords | check, tool, undefined, is defined, isnotnull, is not null, is not empty, is object, is function, is number, check number, check object |

## Links

- npm: https://www.npmjs.com/package/check-tool
- Repository: https://github.com/vyarmak/check-tool
- Homepage: https://github.com/vyarmak/check-tool#readme
- Issues: https://github.com/vyarmak/check-tool/issues
- npm.io page: https://npm.io/package/check-tool

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2018-03-06
- 1.0.1 — 2017-06-25
- 1.0.0 — 2017-06-24

## README

# check-tool [![Build Status](https://travis-ci.org/vyarmak/check-tool.svg?branch=master)](https://travis-ci.org/vyarmak/check-tool)
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

```js
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...
}
```

---
_Source: https://npm.io/package/check-tool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
