# @cuties/is

> Cutie extension for checking types in JavaScript.

Latest version **1.1.3** (published 2019-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cuties/is
pnpm add @cuties/is
yarn add @cuties/is
bun add @cuties/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.1.3 |
| Published | 2019-09-10 |
| First published | 2018-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | guseyn |
| Maintainers | guseyn |
| Keywords | cutie, is, type, types |

## Links

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

## Dependencies (3)

- [@cuties/wall](https://npm.io/package/@cuties/wall.md) ^1.1.2
- [@cuties/cutie](https://npm.io/package/@cuties/cutie.md) ^1.7.5
- [test-executor](https://npm.io/package/test-executor.md) ^1.2.4

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2019-09-10
- 1.1.2 — 2019-05-10
- 1.1.1 — 2019-05-10
- 1.1.0 — 2019-02-21
- 1.0.14 — 2019-02-17
- 1.0.13 — 2019-02-17
- 1.0.12 — 2019-02-16
- 1.0.11 — 2019-02-16
- 1.0.10 — 2019-02-16
- 1.0.9 — 2019-02-16
- 1.0.8 — 2018-09-22
- 1.0.7 — 2018-09-19
- 1.0.6 — 2018-08-28
- 1.0.5 — 2018-08-27
- 1.0.4 — 2018-08-27

## README

# cutie-is

[![NPM Version](https://img.shields.io/npm/v/@cuties/is.svg)](https://npmjs.org/package/@cuties/is)
[![Build Status](https://travis-ci.org/Guseyn/cutie-is.svg?branch=master)](https://travis-ci.org/Guseyn/cutie-is)
[![codecov](https://codecov.io/gh/Guseyn/cutie-is/branch/master/graph/badge.svg)](https://codecov.io/gh/Guseyn/cutie-is)

[Cutie](https://github.com/Guseyn/cutie) extension for checking types in JavaScript. It's based on the [Async Tree Pattern](https://github.com/Guseyn/async-tree-patern/blob/master/Async_Tree_Patern.pdf).

## Examples

You can find examples of using this library in the [test directory](https://github.com/Guseyn/cutie-is/tree/master/test).

## Install

`npm install @cuties/is`

## Run test

`npm test`

## Run build

`npm run build`

## Usage

```js
const {
  // Here needed async objects from the table below
} = require('@cuties/is');
```

| Async Object  | Async/sync call | Parameters | Representation result |
| ------------- | ----------------| ---------- | --------------------- |
| `Is` | `value instanceof clazz` | `value, clazz` | `boolean` |
| `IsArray` | `Array.isArray` | `value` | `boolean` |
| `IsBoolean` | `typeof value === 'boolean'` | `value` | `boolean` |
| `IsDate` | `value instanceof Date` | `value` | `boolean` |
| `IsFunction` | `typeof value === 'function'` | `value` | `boolean` |
| `IsNull` | `typeof value === null` | `value` | `boolean` |
| `IsNumber` | `typeof value === 'number'` | `value` | `boolean` |
| `IsObject` | `typeof value === 'object'` | `value` | `boolean` |
| `IsRealObject` | `typeof value === 'object' && value !== null` | `value` | `boolean` |
| `IsString` | `typeof value === 'string'` | `value` | `boolean` |
| `IsSymbol` | `typeof value === 'symbol'` | `value` | `boolean` |
| `IsUndefined` | `typeof value === 'undefined'` | `value` | `boolean` |

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