# isnullorempty

> Check if a given object is null or empty

Latest version **1.0.1** (published 2017-02-16) · WTFPL license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2017-02-16 |
| First published | 2017-02-16 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Herwin Bozet |
| Maintainers | herwin |
| Keywords | null, undefined, empty, is, isnull, isempty |

## Links

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

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-02-16
- 1.0.0 — 2017-02-16

## README

# isnullorempty

[![npm-version](https://img.shields.io/npm/v/isnullorempty.svg?style=flat-square)](https://www.npmjs.com/package/isnullorempty)

A simple module that lets you check if a given object is null or empty

## Usage

Firstly, you have to install the module
```
npm i isnullorempty --save
```

And then you can import the module and start working
```javascript
const isNullOrEmpty = require("isnullorempty");

if(isNullOrEmpty(null)) {
	//...
}
```

Or you can work with some more specific functions
```javascript
const inoe = require("isnullorempty");

if(inoe.isNull(value)) {
	// Returns true for null
}

if(inoe.isEmpty(value)) {
	// BUGGED: Returns true for null, undefined, [], {} or ""
}

if(inoe.isUndefined(value)) {
	// Returns true for undefined
}

if(inoe.isNullOrEmpty(value)) {
	// Same as the "basic" one
	// Returns true for null, undefined, [], {} or ""
}

if(inoe.isNullOrUndefined(value)) {
	// Returns true for null or undefined
}
```

## License
[WTFPL](http://www.wtfpl.net/)

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