# whatsme

> Library to manage object types

Latest version **1.0.4** (published 2020-02-15) · MIT license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2020-02-15 |
| First published | 2019-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 27.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juan Castro Fernández |
| Maintainers | castrofernandez |

## Links

- npm: https://www.npmjs.com/package/whatsme
- Repository: https://github.com/castrofernandez/whatsme
- Homepage: https://github.com/castrofernandez/querystringme#readme
- Issues: https://github.com/castrofernandez/querystringme/issues
- npm.io page: https://npm.io/package/whatsme

## Recent versions

- 1.0.4 (latest) — 2020-02-15
- 1.0.3 — 2020-02-15
- 1.0.2 — 2019-03-24
- 1.0.1 — 2019-03-23
- 1.0.0 — 2019-03-23

## README

# whatsme
Library to process object types

1. Install 

```
npm install whatsme
```

2. Usage

```
import whatsme from 'whatsme';

whatsme.isNumber(3); // true
whatsme.whats('Something') // 'string'
```

3. Development

```
npm run dev
```

This watches files and compiles them

4. Run tests

```
npm test
```

`npm run dev` should be running to watch and recompile files.

5. List of methods

* isNull(variable): checks if variable is null.
* isUndefined(variable): checks if variable is undefined.
* isSymbol(variable): checks if variable is a symbol.
* isString(variable): checks if variable is a string.
* isNumber(variable); checks if variable is a number.
* isNaN(variable): checks if variable is NaN (Not a Number).
* isArray(variable): checks if variable is an array.
* isTrue(variable): checks if variable equals true strictly.
* isFalse(variable): checks if variable equals false strictly.
* isRegExp(variable): checks if variable is a regular expression.
* isDate(variable): checks if variable is an instance of Date.
* isObject(variable): checks if variable is a plain object.
* isFunction(variable): checks if variable is a function.
* isNotNull(variable): checks if variable is not null.
* isDefined(variable): checks if variable is not undefined.
* isSomething(variable): checks if variable is defined (not null and not undefined).
* isBoolean(variable): checks if variable is a boolean (strictly true or false).
* isTruthy(variable): checks if variable is truhty (the opposite of falsy).
* isFalsy(variable): checks if variable is falsy: false, 0, '', undefined, null or NaN.
* isEmpty(variable): checks if variable is empty: falsy, or empty object ({}) or empty array ([]);
* isNotEmpty(variable): checks if variable is not empty. The opposite to isEmpty.
* whats(variable): returns a string with the type of the variable:
  * null
  * undefined
  * symbol
  * string
  * number
  * NaN
  * array
  * true
  * false
  * RegExp
  * Date
  * object
  * function

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