# be-of-type

> basic type assertions

Latest version **0.0.0** (published 2017-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install be-of-type
pnpm add be-of-type
yarn add be-of-type
bun add be-of-type
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2017-11-11 |
| First published | 2017-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Noah Anabiik Schwarz |
| Maintainers | chiefbiiko |
| Keywords | type, assert |

## Links

- npm: https://www.npmjs.com/package/be-of-type
- Repository: https://github.com/chiefbiiko/be-of-type
- Issues: https://github.com/chiefbiiko/be-of-type/issues
- npm.io page: https://npm.io/package/be-of-type

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2017-11-11

## README

# be-of-type

[![build status](http://img.shields.io/travis/chiefbiiko/be-of-type.svg?style=flat)](http://travis-ci.org/chiefbiiko/be-of-type) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/chiefbiiko/be-of-type?branch=master&svg=true)](https://ci.appveyor.com/project/chiefbiiko/be-of-type) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


***

Basic type assertions.

***

## Get it

```
npm install --save be-of-type
```

***

## Usage

Most useful as a set of building blocks for setting up narrow and targeted type assertions.

```js
const be = require('be-of-type')
const is = {
  bool: be.boolean,
  buffer: be.buffer,
  nonEmptyStringArray: x => be.array(x) && x.length && x.every(be.string),
  pojo: be.plainObject,
  uInt: x => be.number(x) && x >= 0 && x % 1 === 0
}

/*...*/
```

***

## License

[MIT](./license.md)

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