# @stackmeister/types

> @stackmeister/types ===================

Latest version **0.1.7** (published 2022-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stackmeister/types
pnpm add @stackmeister/types
yarn add @stackmeister/types
bun add @stackmeister/types
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2022-11-09 |
| First published | 2022-11-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | torbenkoehn |

## Links

- npm: https://www.npmjs.com/package/@stackmeister/types
- Repository: https://github.com/StackmeisterGmbH/typescript-packages
- Homepage: https://github.com/StackmeisterGmbH/typescript-packages#readme
- Issues: https://github.com/StackmeisterGmbH/typescript-packages/issues
- npm.io page: https://npm.io/package/@stackmeister/types

## Recent versions

- 0.1.7 (latest) — 2022-11-09
- 0.1.6 — 2022-11-09
- 0.1.5 — 2022-11-09

## README

@stackmeister/types
===================

Minimalistic and strict utility functions for JavaScript's primitive types.

Install
=======

```bash
// Yarn
yarn add @stackmeister/types

// NPM
npm i @stackmeister/types
```

TypeScript typings are included (No `@types/` package needed)

Usage
=====

#### Predicates for simple type checks

```ts
import {
  isUndefined,
  isNull,
  isNullOrUndefined,
  isBoolean,
  isString,
  isNumber,
  isInteger,
  isNumeric,
  isArray,
  isObject,
  isFunction,
} from '@stackmeister/types'

isUndefined('test') // false
isUndefined(undefined) // true
isUndefined(null) // false

isNull('test') // false
isNull(null) // true
isNull(undefined) // false

// etc...
```

> Notice: In the Stackmeister typing mindset, objects and arrays are two very different things
>         An object will not be an object, when it is an array. It will only match the `isArray` predicate.

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