form-guardian
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Form guardian

Collection of common validators for different kind of input fields.

Use case

Made for the use case of creating POC's quicker, without having to fill your POC with validation logic. Form-guardian simply lets you focus on your POC rather then the common stuff around when it comes to input field validation.

npm install form-guardian

import { validateZipCodeSwe } from '@form-guardian';
import { maxValue } from '@form-guardian';

validateZipCodeSwe(123321) // false
validateZipCodeSwe(12332) // true

maxValue(1, 5) // true
maxValue(5, 1) // false

Other information

Terms of usage (MIT) - Lisence

Basicly feel free to use, fork etc. But The author takes no responsibility of the code as stated in the license.

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i form-guardian

    Weekly Downloads

    2

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    30.7 kB

    Total Files

    40

    Last publish

    Collaborators

    • joakimengqvist