# typeof-util

> Simple utility function that acts as an enhanced version of the typeof operator by adding support for returning "array" and "null".

Latest version **1.0.7** (published 2019-10-31) · Apache license · 0 weekly downloads

## Install

```sh
npm install typeof-util
pnpm add typeof-util
yarn add typeof-util
bun add typeof-util
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-10-31 |
| First published | 2019-10-22 |
| Weekly downloads | 0 |
| License | Apache |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Cody Bonney |
| Maintainers | codybonney |
| Keywords | javascript, typescript, typeof, type, types, function, module, util, utilities, helper |

## Links

- npm: https://www.npmjs.com/package/typeof-util
- Repository: https://github.com/codybonney/typeof-util
- Issues: https://github.com/codybonney/typeof-util/issues
- npm.io page: https://npm.io/package/typeof-util

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2019-10-31
- 1.0.6 — 2019-10-31
- 1.0.5 — 2019-10-24
- 1.0.4 — 2019-10-24
- 1.0.3 — 2019-10-23
- 1.0.2 — 2019-10-23
- 1.0.1 — 2019-10-22
- 1.0.0 — 2019-10-22

## README

## typeof-util

[![Build Status](https://travis-ci.com/codybonney/typeof-util.svg?branch=master)](https://travis-ci.com/codybonney/typeof-util)
[![npm version](http://img.shields.io/npm/v/typeof-util.svg?style=flat)](https://npmjs.org/package/typeof-util "View this project on npm")

### Description:
A simple TypeScript utility function that acts as an enhanced version of the `typeof` operator by adding support for returning `"array"` and `"null"`. JavaScript UMD and TypeScript declaration file will be generated when building the package.

### Installation:
```
npm install typeof-util
```

### Usage:
```
import typeOf from 'typeof-util';

...

typeOf(true)  // 'boolean'
typeOf({})    // 'object'
typeOf([])    // 'array'
typeOf(null)  // 'null'
```

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