# type-detail

> A function check real typeof value in JavaScript

Latest version **1.1.0** (published 2021-12-11) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2021-12-11 |
| First published | 2021-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | DungGramer |
| Maintainers | dunggramer |
| Keywords | type, typeof, type-detail |

## Links

- npm: https://www.npmjs.com/package/type-detail
- Repository: https://github.com/DungGramer/type-detail
- Homepage: https://github.com/DungGramer/type-detail#readme
- Issues: https://github.com/DungGramer/type-detail/issues
- npm.io page: https://npm.io/package/type-detail

## 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

- 1.1.0 (latest) — 2021-12-11
- 1.0.4 — 2021-12-11
- 1.0.3 — 2021-12-11
- 1.0.2 — 2021-12-11
- 1.0.1 — 2021-12-11
- 1.0.0 — 2021-12-11

## README

# Type
A function check real typeof value in JavaScript.  
![workflow status](https://github.com/DungGramer/type-detail/actions/workflows/publish-package.yml/badge.svg) 
[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)
 [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/dwyl/esta/issues)

  
[![https://nodei.co/npm/type-detail.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/type-detail.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/type-detail)
## Installation
```bash
npm i type-detail
# or
yarn add type-detail
```

## Usage
```js
import typeDetail from 'type-detail';
// or import { typeDetail } from 'type-detail';

typeDetail(1); // 'integer'
typeDetail(1.1); // 'float'
typeDetail([1, 2, 3]); // 'array'
typeDetail(class Cat {}); // 'class'
typeDetail(async function () {}); // 'promise'
typeDetail(function* () {}); // 'generator'

```

## Support
+ integer
+ float
+ infinity
+ NaN
+ string
+ boolean
+ array
+ object
+ null
+ undefined
+ function
+ symbol
+ map
+ set
+ weakMap
+ weakSet
+ date
+ regExp
+ error
+ promise
+ arrayBuffer
+ dataView
+ int8Array
+ uint8Array
+ uint8ClampedArray
+ int16Array
+ uint16Array
+ int32Array
+ uint32Array
+ float32Array
+ float64Array
+ BigInt64Array
+ BigUint64Array
+ generator

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