# jkroso-type

> less broken typeof

Latest version **1.1.1** (published 2015-10-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install jkroso-type
pnpm add jkroso-type
yarn add jkroso-type
bun add jkroso-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.1.1 |
| Published | 2015-10-15 |
| First published | 2015-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | jkroso |
| Keywords | typeof, type, utility |

## Links

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

## 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.1 (latest) — 2015-10-15
- 1.1.0 — 2015-10-01

## README

# type

  Type assertions aka less-broken `typeof`.

## API

```js
var type = require('type')
type(new Date) // => 'date'
type({}) // => 'object'
type(null) // => 'null'
type(undefined) // => 'undefined'
type("hey") // => 'string'
type(true) // => 'boolean'
type(false) // => 'boolean'
type(12) // => 'number'
type(type) // => 'function'
type(/asdf/) // => 'regexp'
type((function(){ return arguments })()) // => 'arguments'
type([]) // => 'array'
type(new Uint8Array) // => 'bit-array'
type(document.createElement('div')) // => 'element'
```

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