0.0.1 • Published 6 years ago

@beenhere4hours/filtering-validation v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Build Status

filter-validate

A way to transform and validate properties and values.

This is a work in progress...

Installation

npm i @beenhere4hours/filter-validate

Usage

const filterValidate = require("../index").filterValidate;

// WIP

Tests

npm test

Validators

ruledescription
requiredEnsures the specified key value exists and is not empty
validEmailChecks for a valid email address
maxLen,nChecks key value length, makes sure it's not longer than the specified length. n = length parameter.
minLen,nChecks key value length, makes sure it's not shorter than the specified length. n = length parameter.
exactLen,nEnsures that the key value length precisely matches the specified length. n = length parameter.
0.0.1

6 years ago