# true-typeof

> Get correct type of value as specified in ECMAScript specification about language types

Latest version **1.0.1** (published 2016-07-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-07-01 |
| First published | 2016-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michał Kownacki |
| Maintainers | kownacki |
| Keywords | type, typeof, true, real, correct, valid, ECMAScript, specification |

## Links

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

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-07-01
- 1.0.0 — 2016-07-01

## README

[![Build Status](https://travis-ci.org/kownacki/true-typeof.svg?branch=master)](https://travis-ci.org/kownacki/true-typeof)

# true-typeof

Get correct type of value as specified in ECMAScript specification about language types http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values

## Installation

$ npm install true-typeof

## API

```javascript
var trueTypeof = require("true-typeof");
```

```javascript
trueTypeof(value); // → type
```

+ *value* - Any value. Object or primitive.

Returns a string with correct JavaScript language type.

Examples:

```javascript
trueTypeof(null); // → "null"
trueTypeof(function() {}); // → "object"
```

For values other that `null` and functions it works exactly like standard `typeof`.

## License

MIT

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