# javascript-type-validate

> A javascript type validator.

Latest version **1.0.5** (published 2019-04-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install javascript-type-validate
pnpm add javascript-type-validate
yarn add javascript-type-validate
bun add javascript-type-validate
```

## 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 | 2019-04-01 |
| First published | 2019-03-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | xxzhiwei |
| Maintainers | _xxzhiwei |
| Keywords | validate-types-javascript, validator |

## Links

- npm: https://www.npmjs.com/package/javascript-type-validate
- Repository: https://github.com/xxzhiwei/javascript-type-validate
- Issues: https://github.com/xxzhiwei/javascript-type-validate/issues
- npm.io page: https://npm.io/package/javascript-type-validate

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-04-01
- 1.0.4 — 2019-03-30
- 1.0.1 — 2019-03-29
- 1.0.0 — 2019-03-29

## README

# javascript-type-validate

一个javascript数据类型校验小工具

## Description

执行时方法时, 根据当前的数据, 返回一个布尔值

## Example

``` javascript
import validator from "javascript-type-validate"

console.log("validate string: ")
console.log(validator.isString("1"))
// => true
console.log(validator.isString())
// => false
console.log(validator.isString(1))
// => false
console.log(validator.isString(true))
// => false
```

## Methods

``` javascript
// 是否为string类型
- isString
// 是否为number类型
- isNumber
// 是否为undefined类型
- isUndefined
// 是否为null类型
- isNull
// 是否为object类型
- isObject
// 是否为array类型
- isArray
// 是否为function类型
- isFunction
// 是否为error类型
- isError
// 是否为symbol类型
- isSymbol
// 是否为NaN类型
- isNaN
// 是否为boolean类型
- isBoolean
// 是否为date类型
- isDate
```

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