# betype

> Basic JavaScript type checking

Latest version **1.0.2** (published 2017-11-30) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install betype
pnpm add betype
yarn add betype
bun add betype
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-11-30 |
| First published | 2017-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wycliffe Peart |
| Maintainers | wycliffe-peart |
| Keywords | type, checking, js, helpers |

## Links

- npm: https://www.npmjs.com/package/betype
- Repository: https://github.com/Jaminate/betype
- Homepage: https://github.com/Jaminate/betype#readme
- Issues: https://github.com/Jaminate/betype/issues
- npm.io page: https://npm.io/package/betype

## 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.2 (latest) — 2017-11-30
- 1.0.1 — 2017-11-30
- 1.0.0 — 2017-11-30

## README

# Betype

Betype is a basic JavaScript type checking package. That validate a value against a list of types and evaluate to true if any of the given value evaluate to true. 

* Version 1.0.0

# Installation

```js
npm install betype --save
```

# Betype Functions
```js
valueBeType(value, ...types);

instanceBeType(instance, ...types);
```
# Examples
```js
var {valueBeType} = require("betype");

const checkValueType = valueBeType("Wycliffe Peart", "string");

console.log(checkValueType);

Output => true
```
```js
var {instanceBeType} = require("betype");

const checkInstanceType = instanceBeType({}, Object);

console.log(checkInstanceType);

Output => true
```

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