# type-utils

Latest version **0.10.6** (published 2017-09-04) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install type-utils
pnpm add type-utils
yarn add type-utils
bun add type-utils
```

## Health

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

Negative: deprecated.

## Facts

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

## Links

- npm: https://www.npmjs.com/package/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/type-utils

## Dependencies (2)

- [jquery](https://npm.io/package/jquery.md) ^3.2.1
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.23.0

## Recent versions

- 0.10.6 (latest) — 2017-09-04
- 0.10.5 — 2017-08-31
- 0.10.4 — 2017-08-31
- 0.10.3 — 2017-08-31
- 0.10.2 — 2017-08-31
- 0.0.1-0.2 — 2017-08-31
- 0.0.10 — 2017-08-06
- 0.0.9 — 2017-08-05
- 0.0.8 — 2017-08-05
- 0.0.7 — 2017-08-04
- 0.0.6 — 2017-08-04
- 0.0.5 — 2017-07-10
- 0.0.4 — 2017-07-10
- 0.0.3 — 2017-07-09
- 0.0.2 — 2017-07-09
- … 1 more at https://npm.io/package/type-utils/versions

## README

> [!IMPORTANT]
> **This package has moved.** It now lives in [beautiful-code-monorepo](https://github.com/MyNameReallySux/beautiful-code-monorepo) as [`packages/type-utils`](https://github.com/MyNameReallySux/beautiful-code-monorepo/tree/main/packages/type-utils). This repository is archived; the modern 1.0 rewrite ships from the monorepo.

# 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/type-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
