# @beautiful-code/type-utils

> Type validation library.

Latest version **0.1.6** (published 2017-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @beautiful-code/type-utils
pnpm add @beautiful-code/type-utils
yarn add @beautiful-code/type-utils
bun add @beautiful-code/type-utils
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2017-10-10 |
| First published | 2017-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Chris Coppola |
| Maintainers | mynamereallysux |

## Links

- npm: https://www.npmjs.com/package/@beautiful-code/type-utils
- Repository: https://github.com/MyNameReallySux/type-utils
- Homepage: https://github.com/MyNameReallySux/type-utils#readme
- Issues: https://github.com/MyNameReallySux/type-utils/issues
- npm.io page: https://npm.io/package/@beautiful-code/type-utils

## Dependencies (3)

- [jquery](https://npm.io/package/jquery.md) ^3.2.1
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.23.0
- [@beautiful-code/string-utils](https://npm.io/package/@beautiful-code/string-utils.md) git+https://github.com/MyNameReallySux/string-utils.git

## Recent versions

- 0.1.6 (latest) — 2017-10-10
- 0.1.5 — 2017-10-10
- 0.1.4 — 2017-09-06
- 0.1.3 — 2017-09-06
- 0.1.2 — 2017-09-05
- 0.1.1 — 2017-09-05

## README

# Type Utils

This is a simple, type identification and validation library. This handles both native types, and es6 types, as well as jQuery objects. This is intended to be used imported via Node.js (or a bundler like Webpack for client side).

## Installation

### Using NPM or Yarn
```
npm install '@beautiful-code/type-utils'
yard add '@beautiful-code/type-utils'
```

## Usage

### Basic Usage

```javascript
const TypeUtils = require('@beautiful-code/type-utils').TypeUtils

let o = {},
	a = [1, 2, 3],
	s = 'string',
	m = new Map()
TypeUtils.getType(o) // object
TypeUtils.getType(a) // array
TypeUtils.getType(s) // string
TypeUtils.getType(m) // map
```

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