# validationhelper-password

> a validation package for Node.js. Main function is providing different level of password validation.

Latest version **1.0.6** (published 2018-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install validationhelper-password
pnpm add validationhelper-password
yarn add validationhelper-password
bun add validationhelper-password
```

## 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.6 |
| Published | 2018-10-31 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tian Sang |
| Maintainers | sangtian719 |
| Keywords | validation, password, quality |

## Links

- npm: https://www.npmjs.com/package/validationhelper-password
- Repository: https://github.com/sangtian719/validationHelper-password
- Homepage: https://github.com/sangtian719/validationHelper-password#readme
- Issues: https://github.com/sangtian719/validationHelper-password/issues
- npm.io page: https://npm.io/package/validationhelper-password

## 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

- 1.0.6 (latest) — 2018-10-31
- 1.0.5 — 2018-10-31
- 1.0.4 — 2018-10-31
- 1.0.3 — 2018-10-31
- 1.0.2 — 2018-10-31
- 1.0.1 — 2018-10-30
- 1.0.0 — 2018-10-30

## README

## validationHelper-password [![npm](https://img.shields.io/npm/v/validationhelper-password.svg)](https://www.npmjs.com/package/validationhelper-password) [![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/sangtian719/validationHelper-password/blob/master/LICENSE)
a validation package for Node.js.
<br>
Main function is providing different level of password validation.

## Installation and Usage

### Install 
`npm install --save validationhelper-password`
<br>
### Usage 
```js
const validationHelper = require('validationhelper-password');
```

## Example 

```js
let value = 'abc';
console.log((validationHelper.isEmpty(value)))//=>false;


let password = '111112A';
let min = 2;
let max = 10;
console.log(validationHelper.passwordQuality.isLowQuality(password,min,max))//=>true;
```
## Function
All function are listed below:

Validation                              | Description
--------------------------------------- | --------------------------------------
***isEmpty(parameter)***  | check if the parameter is empty.
***isLowQuality(password, min, max)***  | check if the password contains at least one of number, uppercase letter or lowercase letter. (1a, 1A, aA)
***isHighQuality(password, min, max)***  | check if the password contains at least one number, one uppercase letter, one lowercase letter. (1aA)
***isSuperQuality(password, min, max)***  | check if the password contains at least one number, one uppercase letter, one lowercase letter and one symbol. (1aA#)
***isTime(time)***  | check if the time format is HH:mm. (23:00)
***isDate(date)***  | check if the date format is YYYY-MM-DD. (2018-10-20)


## Contributing

In general, this project follow the "fork-and-pull" Git workflow.

1. Fork the repo on GitHub
2. Clone the project to your own machine
3. Work on your fork
    1. Make your changes and additions
    2. Change or add tests if needed
    3. Add changes to README.md if needed
4. Commit changes to your own branch
5. Push your work back up to your fork
6. Submit a Pull request and waiting to be accepted

## License (MIT)
[License](https://github.com/sangtian719/validationHelper-password/blob/master/LICENSE)

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