# @guseyn/cutie-is

> Cutie extension for checking types in JavaScript.

Latest version **1.0.5** (published 2018-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @guseyn/cutie-is
pnpm add @guseyn/cutie-is
yarn add @guseyn/cutie-is
bun add @guseyn/cutie-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.5 |
| Published | 2018-08-27 |
| First published | 2018-05-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.4 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/@guseyn/cutie-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/@guseyn/cutie-is

## Dependencies (2)

- [@cuties/cutie](https://npm.io/package/@cuties/cutie.md) 1.4.3
- [@cuties/assert](https://npm.io/package/@cuties/assert.md) 1.1.2

## 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.0.5 (latest) — 2018-08-27
- 1.0.4 — 2018-08-27
- 1.0.3 — 2018-06-06
- 1.0.2 — 2018-05-28
- 1.0.1 — 2018-05-25
- 1.0.0 — 2018-05-21

## README

# cutie-is
Cutie extension for checking types in JavaScript.

# cutie-assert

[![NPM Version][npm-image]][npm-url]

[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).

# 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` | `typeof value instanceof Date` | `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` |

[npm-image]: https://img.shields.io/npm/v/@cuties/is.svg
[npm-url]: https://npmjs.org/package/@cuties/is

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