# elenchus

> A collection of predicate functions to serve as lightweight utils

Latest version **1.2.0** (published 2019-03-02) · ISC license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2019-03-02 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Lorenzo Koundouris |
| Maintainers | lorenzo.koundouris |
| Keywords | typescript, javascript, es6, webpack, babel, circleci, continuous integration, jest, eslint, prettier |

## Links

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

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-03-02
- 1.1.2 — 2019-03-02
- 1.1.1 — 2019-03-02
- 1.0.7 — 2019-03-02
- 1.0.6 — 2019-03-02
- 1.0.5 — 2019-03-02
- 1.0.4 — 2019-03-02
- 1.0.3 — 2019-03-02
- 1.0.2 — 2019-02-28
- 1.0.1 — 2019-02-25
- 1.0.0 — 2019-02-25

## README

# elenchus

[![CircleCI](https://circleci.com/gh/LorenzoKoundouris/elenchus/tree/master.svg?style=svg)](https://circleci.com/gh/LorenzoKoundouris/elenchus/tree/master) ![minified size](https://badgen.net/bundlephobia/min/elenchus) ![minified size](https://badgen.net/bundlephobia/minzip/elenchus) [![dependencies Status](https://david-dm.org/LorenzoKoundouris/elenchus/status.svg)](https://david-dm.org/LorenzoKoundouris/elenchus) [![devDependencies Status](https://david-dm.org/LorenzoKoundouris/elenchus/dev-status.svg)](https://david-dm.org/LorenzoKoundouris/elenchus?type=dev) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

> “There is only one good, knowledge, and one evil, ignorance.”

_Named after the Socratic method of hypothesis elimination, where a series of questions formulated as tests of logic and fact intended to help discover general characteristics of particular instances._ [More](https://en.wikipedia.org/wiki/Socratic_method)

---

## Description

A collection of predicate functions to serve as lightweight utils.

## Installation

Using npm:

```shell
$ npm install elenchus
```

Using yarn:

```shell
$ yarn add elenchus
```

## Usage

```javascript
const elenchus = require("elenchus");
elenchus.isNullOrUndefined("I know that I know nothing");
// => false
```

### Individual methods

```javascript
const isNullOrUndefined = require("elenchus").isNullOrUndefined;
isNullOrUndefined("The unexamined life is not worth living");
// => false
```

## Methods

| Method                                     | Description            |
| ------------------------------------------ | ---------------------- |
| `isArrayAndNotEmpty(param: any): boolean`  | Checks type and length |
| `isNullOrUndefined(param: any): boolean`   | Checks type            |
| `isStringAndNotEmpty(param: any): boolean` | Checks type and value  |

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