# @necho/js-type

> A javascript type check tool

Latest version **1.0.6** (published 2021-07-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @necho/js-type
pnpm add @necho/js-type
yarn add @necho/js-type
bun add @necho/js-type
```

## 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.6 |
| Published | 2021-07-20 |
| First published | 2021-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Enoch |
| Maintainers | necho |
| Keywords | js, type, checker |

## Links

- npm: https://www.npmjs.com/package/@necho/js-type
- Repository: https://github.com/Enoooch/js-type
- Homepage: https://github.com/Enoooch/js-type#readme
- Issues: https://github.com/Enoooch/js-type/issues
- npm.io page: https://npm.io/package/@necho/js-type

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.26.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-07-20
- 1.0.5 — 2021-07-19
- 1.0.4 — 2021-07-14
- 1.0.3 — 2021-07-01
- 1.0.2 — 2021-07-01
- 1.0.1 — 2021-07-01
- 1.0.0 — 2021-07-01

## README

# is

> A javascript type checker

```js
is.array([]) //=> true

isNumber('') //=> false
```

## Installation

Using npm

```
$ npm install @necho/js-type
```

Using yarn

```
$ yarn add @necho/js-type
```

## Usage

Commonjs usage

```js
const is = require('@necho/js-type').default;

is.number(7) //=> true
```

ES6 usage
```js
import is from '@necho/js-type';

is.number(7) //=> true
```

Using semantic function
```js
import { isArray } from '@necho/js-type';

isArray('') //=> false
```

## API

### is.{method}

*Basic*

**.string(value)**

**.number(value)**

**.boolean(value)**

**.array(value)**

**.object(value)**

**.date(value)**

**.symbol(value)**


*Boolean*

**.false(value)**

**.true(value)**


*Number*

**.infinite(value)**

**.nan(value)**

**.even(value)**

**.odd(value)**


*Nullish*

**.null(value) / .nil(value)**

**.undefined(value) / .undef(value)**

**.defined(value)**


*Function*

**.function(value)**

**.normalFunction(value)**

**.generatorFunction(value)**

**.asyncFunction(value)**

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