# power-validator

> The vision of the power validator is bringing all the possiblity validation functions and utils in single place with easy resuable way. its a centralized validation libray for all the language

Latest version **0.4.1** (published 2019-03-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install power-validator
pnpm add power-validator
yarn add power-validator
bun add power-validator
```

## 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.4.1 |
| Published | 2019-03-19 |
| First published | 2019-02-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Aravinth Raja |
| Maintainers | aravinthraja |
| Keywords | powerfull, easy, eliquient, validation, library, javascript |

## Links

- npm: https://www.npmjs.com/package/power-validator
- Repository: https://github.com/PowerValidator/power-validator-javascript
- Homepage: https://github.com/PowerValidator/power-validator-javascript#readme
- Issues: https://github.com/PowerValidator/power-validator-javascript/issues
- npm.io page: https://npm.io/package/power-validator

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.4.1 (latest) — 2019-03-19
- 0.4.0 — 2019-03-19
- 0.3.2 — 2019-02-21
- 0.3.1 — 2019-02-21
- 0.3.0 — 2019-02-19
- 0.2.2 — 2019-02-15
- 0.2.1 — 2019-02-15
- 0.2.0 — 2019-02-14
- 0.2.0-beta — 2019-02-14

## README

<div align="center">

![Power Validator](https://raw.githubusercontent.com/PowerValidator/power-validator-javascript/master/power-validator-logo.png)
<br><br>

[![codecov](https://codecov.io/gh/PowerValidator/power-validator-javascript/branch/master/graph/badge.svg)](https://codecov.io/gh/PowerValidator/power-validator-javascript) ![](https://img.shields.io/npm/dt/power-validator.svg?label=npm%20downloads&style=flat) 
[![](https://data.jsdelivr.com/v1/package/npm/power-validator/badge)](https://www.jsdelivr.com/package/npm/power-validator)

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=PowerValidator_power-validator-javascript&metric=alert_status)](https://sonarcloud.io/dashboard?id=PowerValidator_power-validator-javascript) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=PowerValidator_power-validator-javascript&metric=bugs)](https://sonarcloud.io/dashboard?id=PowerValidator_power-validator-javascript)  [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=PowerValidator_power-validator-javascript&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=PowerValidator_power-validator-javascript)

[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=PowerValidator_power-validator-javascript&metric=security_rating)](https://sonarcloud.io/dashboard?id=PowerValidator_power-validator-javascript) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=PowerValidator_power-validator-javascript&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=PowerValidator_power-validator-javascript)

[![Build Status](https://travis-ci.com/PowerValidator/power-validator-javascript.svg?branch=master)](https://travis-ci.com/PowerValidator/power-validator-javascript)

</div>

# Power Validator Javascript 

Power Validator is a lightweight all in one library for the validation and respective utils which we use in the everyday project/product development. 

> Our Mission is to bring in all the possible validation functions and helper utils into to one place


## Getting Started 

We Support Node ES6 Modules, plain javascript, typescript. AMD modules

### Install using npm 

```sh
   $ npm install power-validator
```

```
   const PowerValidator = require("power-validator");

   let status = PowerValidator.isString("Power Validator");

   console.log(status);
```

### Install for browser 

you can  check our cdn source for the latest version ro you can download form the Github release 

```
    https://cdn.jsdelivr.net/npm/power-validator/dist/power-validator.min.js
```

```
   <script src = "https://cdn.jsdelivr.net/npm/power-validator/dist/power-validator.min.js" >

   <script type = "text/javascript">

     var name   = "Power Validator";

    console.log( PowerValidator.isString(name));  'true'


     var number   = 100;

    console.log( PowerValidator.isString(number));  'false'

   </script>
```


## Currently Supported functions (latest build)

Our Validation functions are currently classifed into following type 

    * String Validator - function's to validate string 
    * Number Validator - function's to validate numbes, floats etc 
    * Array Validator  - function's to validate array.


### String Validator


| Function | README |
| ------ | ------ |
| isString | Return true if the input is ("typeof string != "string") |
| isStringNull | Return true if the input is (null  undefind  "null") |
| isStringEmpty |Return true if the input is (null  undefind  ""  "null") |
| isStringValid | Return false if the input is (null  undefind  "null"  "typeof string != "string"  "" ) |
| isCapitalized | Return true if the isStringValid && First Charcter is Capticalized |

### Number Validator


| Function | README |
| ------ | ------ |
| isNumber(input) | Return true if the input is ("typeof input != "string") |
| isZero(input)   | Return true if the input is zero |
| isPostiveNumber(input) | Return true if the input is zero or greater than zero |
| isNegativeNumber(input) | Return true if the input less than zero |

### Array Validator


| Function | README |
| ------ | ------ |
| isArray(input) | Return true if the input is ("typeof input != "array") |
| isArrayEmpty(input) | Return true if the input array empty|

### Address Validator


| Function | README |
| ------ | ------ |
| isEmailAddress(input) | Return true if the input is valid email (works on the mordern email)|

### Quality Analysis by

[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=PowerValidator_power-validator-javascript)](https://sonarcloud.io/dashboard?id=PowerValidator_power-validator-javascript)

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