# input-verifier

> Some useful functions to check common data input.

Latest version **1.0.0** (published 2017-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install input-verifier
pnpm add input-verifier
yarn add input-verifier
bun add input-verifier
```

## 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.0 |
| Published | 2017-02-10 |
| First published | 2017-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jose Luis Quintana |
| Maintainers | joseluisq |
| Keywords | validation, input, data, utils, funtions |

## Links

- npm: https://www.npmjs.com/package/input-verifier
- Repository: https://github.com/joseluisq/input-verifier
- Homepage: https://github.com/joseluisq/input-verifier#readme
- Issues: https://github.com/joseluisq/input-verifier/issues
- npm.io page: https://npm.io/package/input-verifier

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-02-10

## README

# input-verifier [![Build Status](https://travis-ci.org/joseluisq/input-verifier.svg?branch=master)](https://travis-ci.org/joseluisq/input-verifier) [![Coverage Status](https://coveralls.io/repos/github/joseluisq/input-verifier/badge.svg?branch=master)](https://coveralls.io/github/joseluisq/input-verifier?branch=master) [![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

> Some useful functions to validate common data input.

## Prerequisites

[NodeJS](https://nodejs.org) v4.0 or greater.

## Install

```sh
npm install input-verifier --save-dev
```

## Usage

```js
const verifier = require('input-verifier')

console.log(verifier.empty(' '))
// true

console.log(verifier.url('https://company.com'))
// true

console.log(verifier.email('info@company.com'))
// true

```

## API

All verification functions return a boolean value.

#### empty(x)

#### email(x)

#### url(x)

#### number(x)

#### digits(x)

#### decimal(x)

#### negative(x)

#### alphanumeric(x)

#### alphabetic(x)

#### major(x1, x2)

#### minor(x1, x2)

#### max(x, limit)

#### min(x, limit)

#### equalTo(x1, x2)

#### maxlength(x, len)

#### minlength(x, len)

## License
MIT license

© 2017 [José Luis Quintana](http://quintana.io)

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