# @zcorky/is

> A TypeCheck library

Latest version **1.0.7** (published 2020-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @zcorky/is
pnpm add @zcorky/is
yarn add @zcorky/is
bun add @zcorky/is
```

## 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.7 |
| Published | 2020-09-18 |
| First published | 2018-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zero |
| Maintainers | uniquecolesmith |

## Links

- npm: https://www.npmjs.com/package/@zcorky/is
- Repository: https://github.com/zcorky/is
- Homepage: https://github.com/zcorky/is#readme
- Issues: https://github.com/zcorky/is/issues
- npm.io page: https://npm.io/package/@zcorky/is

## Recent versions

- 1.0.7 (latest) — 2020-09-18
- 1.0.6 — 2018-12-18
- 1.0.5 — 2018-12-17
- 1.0.4 — 2018-12-17
- 1.0.3 — 2018-12-17
- 1.0.2 — 2018-12-17
- 1.0.1 — 2018-09-28
- 1.0.0 — 2018-09-12

## README

# is

[![NPM version](https://img.shields.io/npm/v/@zcorky/is.svg?style=flat)](https://www.npmjs.com/package/@zcorky/is)
[![Coverage Status](https://img.shields.io/coveralls/zcorky/is.svg?style=flat)](https://coveralls.io/r/zcorky/is)
[![Dependencies](https://david-dm.org/@zcorky/is/status.svg)](https://david-dm.org/@zcorky/is)
[![Build Status](https://travis-ci.com/zcorky/is.svg?branch=master)](https://travis-ci.com/zcorky/is)
![license](https://img.shields.io/github/license/zcorky/is.svg)
[![issues](https://img.shields.io/github/issues/zcorky/is.svg)](https://github.com/zcorky/is/issues)

> A TypeCheck lib

## Install

```
$ npm install @zcorky/is
```

## Usage

```js
// typescript
import * as is from '@zcorky/is';

// primitive
is.nul(null);
is.undefined(undefined);
is.string('');
is.number(1);
is.boolean(false);
is.symbol(Symbol());

// primitive
is.primitive(true);

// array
is.array([]);

// function
is.func(() => null);

// object
is.object({});

// promise
is.promise(promise);

// date
is.date(new Date());
is.date(+ new Date());
is.date(new Date().toString());

// integer
is.integer(10);
is.int(10);
is.safeInteger(Math.pow(2, 53) - 1);
is.safeInt(Math.pow(2, 53) - 1);

// float
is.float(10.1);
```

### Relatived
* [is](https://github.com/sindresorhus/is) - Type check values: is.string('🦄') //=> true
* [joi](https://github.com/hapijs/joi) - Object schema validation.
* [ajv](https://github.com/epoberezkin/ajv) - The fastest JSON Schema Validator.
* [parameter](https://github.com/node-modules/parameter) - A parameter verify tools.
* [type-is](https://github.com/jshttp/type-is) - Infer the content-type of a request.

## License

MIT © [Moeover](https://moeover.com)

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