# ez-type

> easily get a string description of a piece of data

Latest version **1.0.0** (published 2018-04-26) · ISC license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2018-04-26 |
| First published | 2018-04-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Jacob |
| Maintainers | clambodile |
| Keywords | type, javascript, ecmascript |

## Links

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

## Dependencies (3)

- [tape](https://npm.io/package/tape.md) ^4.9.0
- [tap-nyan](https://npm.io/package/tap-nyan.md) ^1.1.0
- [npm-watch](https://npm.io/package/npm-watch.md) ^0.3.0

## 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.0.0 (latest) — 2018-04-26

## README

# ez-type

Easily determine type.

## Install

```bash
npm install ez-type
```

## Usage

```javascript
const ezType = require('ez-type')
ezType({}) //"object"
ezType([]) //"array"
ezType(null) //"null"
ezType(undefined) //"undefined"
ezType(NaN) //"NaN"
ezType(5)  //"number"
ezType("hewwo") //"string"

//avoid common type pitfalls
typeof [] //"object"
typeof null //"object"
typeof NaN //"number"
```

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