# realtype

> Can be used to distinguish between these types: boolean, number, string, function, array, date, regexp, object, error.

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

## Install

```sh
npm install realtype
pnpm add realtype
yarn add realtype
bun add realtype
```

## 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.1.2 |
| Published | 2017-05-10 |
| First published | 2017-05-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Heleth |
| Maintainers | heleth |
| Keywords | typeof, type, javascript, object, array, date |

## Links

- npm: https://www.npmjs.com/package/realtype
- Repository: https://github.com/BoizZ/realType
- Homepage: https://github.com/BoizZ/realType#readme
- Issues: https://github.com/BoizZ/realType/issues
- npm.io page: https://npm.io/package/realtype

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2017-05-10
- 1.1.1 — 2017-05-09
- 1.0.0 — 2017-05-09
- 0.1.0 — 2017-05-09

## README

# realtype

[![](https://img.shields.io/travis/BoizZ/realtype.svg?style=flat-square)](https://travis-ci.org/BoizZ/realtype)
[![npm package](https://img.shields.io/npm/v/realtype.svg?style=flat-square)](https://www.npmjs.org/package/realtype)
[![NPM downloads](http://img.shields.io/npm/dm/realtype.svg?style=flat-square)](https://npmjs.org/package/realtype)
[![Dependency Status](https://david-dm.org/BoizZ/realtype.svg?style=flat-square)](https://david-dm.org/BoizZ/realtype)

Can be used to distinguish between these types: boolean, number, string, function, array, date, regexp, object, error.

## Usage

```bash
npm i --save realtype
```

```js
var realtype = require('realtype');
realtype(['Heleth']);
// => array
```

## API

```js
realtype(obj: any): 'boolean' | 'number' | 'string' | 'function' | 'array' | 'date' | 'regexp' | 'object' | 'error'
```

Return real type.

## License

MIT

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