# @typemon/check

> A collection of frequently used, safe and intuitive type checking and comparison functions.

Latest version **5.2.0** (published 2020-08-17) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @typemon/check
pnpm add @typemon/check
yarn add @typemon/check
bun add @typemon/check
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 5.2.0 |
| Published | 2020-08-17 |
| First published | 2019-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 37.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Monster Space Network |
| Maintainers | monsterspace.network |
| Keywords | monster-space-network, typemon, check |

## Links

- npm: https://www.npmjs.com/package/@typemon/check
- Repository: https://gitlab.com/monster-space-network/typemon/check
- Homepage: https://gitlab.com/monster-space-network/typemon/check#readme
- Issues: https://gitlab.com/monster-space-network/typemon/check/issues
- npm.io page: https://npm.io/package/@typemon/check

## Recent versions

- 5.2.0 (latest) — 2020-08-17
- 5.1.0 — 2020-07-17
- 5.0.0 — 2020-07-16
- 4.0.0 — 2020-01-12
- 3.0.0 — 2019-10-17
- 2.0.0 — 2019-09-18
- 1.5.0 — 2019-07-17
- 1.4.0 — 2019-06-05
- 1.3.0 — 2019-05-13
- 1.2.0 — 2019-05-11
- 1.1.0 — 2019-05-07
- 1.0.0 — 2019-04-15

## README

# Check - [![version](https://img.shields.io/npm/v/@typemon/check.svg)](https://www.npmjs.com/package/@typemon/check) [![license](https://img.shields.io/npm/l/@typemon/check.svg)](https://gitlab.com/monster-space-network/typemon/check/blob/master/LICENSE) ![typescript-version](https://img.shields.io/npm/dependency-version/@typemon/check/dev/typescript.svg) [![gitlab-pipeline](https://gitlab.com/monster-space-network/typemon/check/badges/master/pipeline.svg)](https://gitlab.com/monster-space-network/typemon/check/-/pipelines) [![coverage](https://gitlab.com/monster-space-network/typemon/check/badges/master/coverage.svg)](https://gitlab.com/monster-space-network/typemon/check/-/graphs/master/charts)
A collection of frequently used, safe and intuitive type checking and comparison functions.
Resolve inconsistencies between global functions and methods of primitive wrapper objects.
You no longer need to write duplicate code or use exclamation marks.
It provides the most basic functionality without dependencies, so you don't have to worry about overhead or code size.
Fully integrated with the TypeScript type system, you can expect high productivity.



## Features
Each function is well documented through comments.
It is also easy to understand because it is linked to MDN documents.
- `equal, notEqual`
- `less, lessOrEqual`
- `greater, greaterOrEqual`
- `isIn, isNotIn`
- `instanceOf, notInstanceOf`
- `isBoolean, isNotBoolean`
- `isTrue, isNotTrue`
- `isFalse, isNotFalse`
- `isTruthy, isFalsy`
- `isString, isNotString`
- `isNumber, isNotNumber`
- `isNaN, isNotNaN`
- `isFinite, isInfinite`
- `isInteger, isNotInteger`
- `isFloat, isNotFloat`
- `isUndefined, isNotUndefined`
- `isNull, isNotNull`
- `isUndefinedOrNull, isNotUndefinedAndNotNull`
- `isSymbol, isNotSymbol`
- `isFunction, isNotFunction`
- `isObject, isNotObject`
- `isArray, isNotArray`
- `isConstructor, isNotConstrutor`
- `isIterable, isNotIterable`
- `isAsyncIterable, isNotAsyncIterable`



## Installation
```
$ npm install @typemon/check
```



## Usage
```typescript
import { Check } from '@typemon/check';
```
```typescript
const value: boolean | number | string | . . . = generateValue();

if (Check.isBoolean(value)) {
    . . .
}
else if (Check.isNumber(value)) {
    . . .
}
else {
    . . .
}
```
```typescript
const value: Example | typeof Example = generateValue();

if (Check.isConstructor(value)) {
    . . .
}
else {
    . . .
}
```

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