Easy HTML Form Validator

Overview

Easy HTML Form Validator

This documentation is being completed...

DEMO

Laravel-inspired validation for HTML forms:

">
<form>
  <input data-rules="bail|required|number|between:1,10" />
form>

Easily chain validation rules with |.

Installation

$ npm i easy-html-form-validator

Usage:

HTML:

">
<form id="my-form">
  <input data-rules="bail|required|number|between:1,10" />
form>

JavaScript:

import Validator from 'easy-html-form-validator';

new Validator('#my-form');

Available Validation Rules:

required

Whether an input is filled or not.

">
<input data-rules="required" />

min:number

The minimum value for this input must be number.

">
<input data-rules="min:5" />

Here the user can't enter numbers below 5:

email

The input value must be an email

">
<input data-rules="email" />

between:min,max

The input value must be a number between min and max.

">
<input data-rules="between:1,10" />

Here only numbers between 1 and 10 are accepted.

number

The input value must be a valid number.

">
<input data-rules="number" />

Here only numbers like 1 or 10.5 are accepted.

int

The input value must be a valid integer.

">
<input data-rules="integer" />

Here only numbers like 1 or 2 are accepted.

integer

The same as int.

bail

If a set of rules contains bail rule, the validation for the input will be stopped as soon as a rule fails, and then other rules will not be processed.

<form>
  <input data-rules="bail|required|number|between:1,10">
form

In this example, at first required rule will be processed and if it fails, other rules will not be processed.

To-do

  • More validation rules
  • Styling
  • Custom configuration
  • Localization
  • Test

License

MIT

Comments
  • Implement new translation

    Implement new translation

    Dear Ali, May I ask you to : 1 - Describe how to add new built-in language? 2 - Why data-rule not working on "textarea" tag. 3 - How to change the language on website/web application dynamically? (laravel 9 project) thanks

    opened by AliMehraei 5
  • Not required but prevents form from submission

    Not required but prevents form from submission

    Dear @AliN11 1- How to define a data-rule on input tag that it is not required but if the user enter something in the input, the entered value must be a positive number. But now if the input element leaved blank, this package prevents form from submission. The current defined rule is : data-rules="number|min:1" note: I know that we can use "nullable", but if an input tag is not required why we have to use "nullable"? 2- we need a data rule to accept space in addition to alpha, number and dashes, like alpha-num-dash-space

    opened by AliMehraei 3
  • chore(deps): update dependency @babel/types to v7.18.4

    chore(deps): update dependency @babel/types to v7.18.4

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | @babel/types (source) | 7.18.2 -> 7.18.4 | age | adoption | passing | confidence |


    Release Notes

    babel/babel

    v7.18.4

    Compare Source

    :eyeglasses: Spec Compliance
    :bug: Bug Fix
    :house: Internal
    • babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-modules-systemjs

    Configuration

    📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 1
  • chore(deps): update dependency jsdom to v20.0.3

    chore(deps): update dependency jsdom to v20.0.3

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | jsdom | 20.0.2 -> 20.0.3 | age | adoption | passing | confidence |


    Release Notes

    jsdom/jsdom

    v20.0.3

    Compare Source

    • Updated dependencies, notably w3c-xmlserializer, which fixes using DOMParser on XML documents containing emoji.

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency @types/ws to v8.5.4

    chore(deps): update dependency @types/ws to v8.5.4

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | @types/ws (source) | 8.5.3 -> 8.5.4 | age | adoption | passing | confidence |


    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency husky to v8.0.2

    chore(deps): update dependency husky to v8.0.2

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | husky (source) | 8.0.1 -> 8.0.2 | age | adoption | passing | confidence |


    Release Notes

    typicode/husky

    v8.0.2

    Compare Source

    • docs: remove deprecated npm set-script

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency @babel/types to v7.20.7

    chore(deps): update dependency @babel/types to v7.20.7

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | @babel/types (source) | 7.20.0 -> 7.20.7 | age | adoption | passing | confidence |


    Release Notes

    babel/babel

    v7.20.7

    Compare Source

    :eyeglasses: Spec Compliance
    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes, babel-plugin-transform-object-super
    :bug: Bug Fix
    • babel-parser, babel-plugin-transform-typescript
    • babel-traverse
    • babel-plugin-transform-typescript, babel-traverse
    • babel-plugin-transform-block-scoping
    • babel-plugin-proposal-async-generator-functions, babel-preset-env
    • babel-generator, babel-plugin-proposal-optional-chaining
    • babel-plugin-transform-react-jsx, babel-types
    • babel-core, babel-helpers, babel-plugin-transform-computed-properties, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • babel-helper-member-expression-to-functions, babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes
    • babel-generator
    :nail_care: Polish
    :house: Internal
    • babel-helper-define-map, babel-plugin-transform-property-mutators
    • babel-core, babel-plugin-proposal-class-properties, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-destructuring, babel-plugin-transform-parameters, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-preset-env, babel-traverse
    :running_woman: Performance

    v7.20.5

    Compare Source

    :eyeglasses: Spec Compliance
    • babel-helpers, babel-plugin-transform-destructuring, babel-plugin-transform-modules-commonjs, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-traverse
    • babel-cli, babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-class-static-block, babel-plugin-transform-classes, babel-plugin-transform-runtime, babel-preset-env
    • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-proposal-decorators, babel-plugin-proposal-private-property-in-object, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    :bug: Bug Fix
    • babel-parser
    • babel-helper-wrap-function, babel-preset-env, babel-traverse
    • babel-plugin-transform-arrow-functions, babel-plugin-transform-parameters, babel-traverse
    • babel-helpers, babel-node, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-regenerator, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
    • babel-helper-create-regexp-features-plugin
    • babel-parser, babel-types
    • babel-generator
    • babel-plugin-transform-block-scoping, babel-traverse
    :nail_care: Polish
    :house: Internal

    v7.20.2

    Compare Source

    :bug: Bug Fix
    • babel-core, babel-helper-create-class-features-plugin, babel-helper-module-transforms, babel-helper-plugin-utils, babel-helper-simple-access, babel-node, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-react-constant-elements, babel-preset-env, babel-standalone, babel-types
    • babel-plugin-transform-typescript
    • babel-parser
    • babel-generator
    • babel-plugin-proposal-decorators, babel-plugin-proposal-object-rest-spread, babel-plugin-transform-jscript
    • babel-plugin-transform-destructuring

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency @babel/types to v7.20.0

    chore(deps): update dependency @babel/types to v7.20.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | @babel/types (source) | 7.19.4 -> 7.20.0 | age | adoption | passing | confidence |


    Release Notes

    babel/babel

    v7.20.0

    Compare Source

    :rocket: New Feature
    • babel-compat-data, babel-helper-compilation-targets, babel-preset-env
    • babel-plugin-syntax-typescript
    • babel-generator, babel-parser, babel-plugin-syntax-explicit-resource-management, babel-plugin-transform-block-scoping, babel-plugin-transform-destructuring, babel-standalone, babel-traverse, babel-types
    • babel-generator, babel-parser, babel-plugin-syntax-import-reflection, babel-standalone, babel-types
    • babel-generator, babel-helper-skip-transparent-expression-wrappers, babel-parser, babel-plugin-transform-typescript, babel-traverse, babel-types
    :bug: Bug Fix
    :house: Internal
    • babel-helpers, babel-node, babel-plugin-proposal-async-generator-functions, babel-plugin-transform-regenerator, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency vitest to v0.24.5

    chore(deps): update dependency vitest to v0.24.5

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | vitest | 0.24.3 -> 0.24.5 | age | adoption | passing | confidence |


    Release Notes

    vitest-dev/vitest

    v0.24.5

    Compare Source

       🚀 Features
       🐞 Bug Fixes
        View changes on GitHub

    v0.24.4

    Compare Source

       🚀 Features
       🐞 Bug Fixes
        View changes on GitHub

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency unbuild to v0.9.4

    chore(deps): update dependency unbuild to v0.9.4

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | unbuild | 0.9.2 -> 0.9.4 | age | adoption | passing | confidence |


    Release Notes

    unjs/unbuild

    v0.9.4

    Compare Source

    📦 Build
    • Fix rollup-plugin-dts version (522687f)
    ❤️ Contributors
    • Pooya Parsa

    v0.9.3

    Compare Source

    📦 Build
    • Use latest rollup-plugin-dts (2b3953e)
    ❤️ Contributors
    • Pooya Parsa

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • chore(deps): update dependency jsdom to v20.0.2

    chore(deps): update dependency jsdom to v20.0.2

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | jsdom | 20.0.1 -> 20.0.2 | age | adoption | passing | confidence |


    Release Notes

    jsdom/jsdom

    v20.0.2

    Compare Source

    • Fixed xhr.abort() to no longer give an exception when the constructed XMLHttpRequest was invalid. (whamtet)
    • Fixed event.getModifierState() on MouseEvent and KeyboardEvent instances to properly consult the ctrlKey, altKey, metaKey, and shiftKey properties of the event. (juzerzarif)
    • Fixed custom element creation to not be affected by any modifications to the window.customElements property. (bicknellr)

    Configuration

    📅 Schedule: Branch creation - "monthly" (UTC), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, check this box

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Dependency Dashboard

    Dependency Dashboard

    This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

    Awaiting Schedule

    These updates are awaiting their schedule. Click on a checkbox to get an update now.

    • [ ] chore(deps): update dependency husky to v8.0.3
    • [ ] chore(deps): update dependency @unocss/preset-wind to v0.48.0
    • [ ] chore(deps): update dependency @unocss/reset to v0.48.0
    • [ ] chore(deps): update dependency eslint to v8.31.0
    • [ ] chore(deps): update dependency eslint-config-prettier to v8.6.0
    • [ ] chore(deps): update dependency lint-staged to v13.1.0
    • [ ] chore(deps): update dependency prettier to v2.8.1
    • [ ] chore(deps): update dependency typescript to v4.9.4
    • [ ] chore(deps): update dependency unocss to v0.48.0
    • [ ] chore(deps): update dependency vite to v3.2.5
    • [ ] chore(deps): update dependency vitest to v0.26.3
    • [ ] chore(deps): update typescript-eslint monorepo to v5.48.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
    • [ ] chore(deps): update dependency @types/node to v18
    • [ ] chore(deps): update dependency unbuild to v1
    • [ ] chore(deps): update dependency vite to v4

    Detected dependencies

    github-actions
    .github/workflows/deploy.yml
    • actions/checkout v3
    • JamesIves/github-pages-deploy-action v4.4.1
    .github/workflows/verify.yml
    • actions/setup-node v3
    npm
    package.json
    • @babel/types 7.20.7
    • @types/node 17.0.17
    • @types/ws 8.5.4
    • @typescript-eslint/eslint-plugin 5.40.0
    • @typescript-eslint/parser 5.40.0
    • @unocss/preset-wind 0.45.29
    • @unocss/reset 0.45.29
    • c8 7.12.0
    • eslint 8.25.0
    • eslint-config-prettier 8.5.0
    • eslint-plugin-prettier 4.2.1
    • husky 8.0.2
    • jsdom 20.0.3
    • lint-staged 13.0.3
    • path 0.12.7
    • prettier 2.7.1
    • standard-version 9.5.0
    • typescript 4.8.4
    • unbuild 0.9.4
    • unocss 0.45.29
    • vite 3.1.8
    • vitest 0.24.5

    • [ ] Check this box to trigger a request for Renovate to run again on this repository
    opened by renovate[bot] 0
Releases(v1.10.0)
  • v1.10.0(Aug 20, 2022)

  • v1.9.0(Aug 17, 2022)

    What's Changed

    • chore(deps): update dependency @unocss/preset-wind to v0.45.6 by @renovate in https://github.com/upjs/facile-validator/pull/230
    • chore(deps): update dependency @unocss/reset to v0.45.6 by @renovate in https://github.com/upjs/facile-validator/pull/231
    • chore(deps): update dependency eslint to v8.22.0 by @renovate in https://github.com/upjs/facile-validator/pull/235
    • chore(deps): update dependency vite to v3.0.7 by @renovate in https://github.com/upjs/facile-validator/pull/233
    • chore(deps): update dependency unbuild to v0.8.8 by @renovate in https://github.com/upjs/facile-validator/pull/234
    • chore(deps): update dependency unocss to v0.45.6 by @renovate in https://github.com/upjs/facile-validator/pull/232
    • Czech localisation file by @Jaroslav-Cerny in https://github.com/upjs/facile-validator/pull/236

    New Contributors

    • @Jaroslav-Cerny made their first contribution in https://github.com/upjs/facile-validator/pull/236

    Full Changelog: https://github.com/upjs/facile-validator/compare/v1.8.0...v1.9.0

    Source code(tar.gz)
    Source code(zip)
  • v1.8.0(Aug 11, 2022)

    What's Changed

    • chore(deps): update dependency @babel/types to v7.18.10 by @renovate in https://github.com/upjs/facile-validator/pull/220
    • chore(deps): update dependency @unocss/preset-wind to v0.45.5 by @renovate in https://github.com/upjs/facile-validator/pull/221
    • chore(deps): update dependency eslint to v8.21.0 by @renovate in https://github.com/upjs/facile-validator/pull/224
    • chore(deps): update dependency vitest to v0.21.1 by @renovate in https://github.com/upjs/facile-validator/pull/225
    • chore(deps): update typescript-eslint monorepo to v5.33.0 by @renovate in https://github.com/upjs/facile-validator/pull/226
    • chore(deps): update dependency unocss to v0.45.5 by @renovate in https://github.com/upjs/facile-validator/pull/223
    • chore(deps): update dependency @unocss/reset to v0.45.5 by @renovate in https://github.com/upjs/facile-validator/pull/222
    • feat: Add new locales by @AliMehraei in https://github.com/upjs/facile-validator/pull/228

    New Contributors

    • @AliMehraei made their first contribution in https://github.com/upjs/facile-validator/pull/228

    Full Changelog: https://github.com/upjs/facile-validator/compare/v1.7.0...v1.8.0

    Source code(tar.gz)
    Source code(zip)
  • v1.7.0(Aug 9, 2022)

  • v1.6.0(Aug 9, 2022)

  • v1.2.0(May 26, 2022)

  • v1.1.0(May 25, 2022)

    What's Changed

    • chore(deps): update dependencies
    • Add support for regex rule by @AliN11 in https://github.com/upjs/facile-validator/pull/129

    New Contributors

    • @RealMrHex made their first contribution in https://github.com/upjs/facile-validator/pull/69

    Full Changelog: https://github.com/upjs/facile-validator/blob/main/CHANGELOG.md#110-2022-05-25

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Apr 7, 2022)

    What's Changed

    • chore(deps): update dependency vitest to v0.6.1 by @renovate in https://github.com/upjs/facile-validator/pull/39
    • fix: ignore non-required and empty inputs by @AliN11 in https://github.com/upjs/facile-validator/pull/40
    • undo strategy for handling non-required and empty inputs by @AliN11 in https://github.com/upjs/facile-validator/pull/41
    • Rename events by @AliN11 in https://github.com/upjs/facile-validator/pull/43
    • chore(deps): update dependency vitest to v0.7.4 by @renovate in https://github.com/upjs/facile-validator/pull/46
    • chore(deps): update dependency lint-staged to v12.3.7 by @renovate in https://github.com/upjs/facile-validator/pull/45
    • chore(deps): update dependency prettier to v2.6.0 by @renovate in https://github.com/upjs/facile-validator/pull/44
    • chore(deps): update typescript-eslint monorepo to v5.15.0 by @renovate in https://github.com/upjs/facile-validator/pull/42
    • feat: add nullable rule by @AliN11 in https://github.com/upjs/facile-validator/pull/47
    • chore(deps): update dependency unbuild to v0.7.2 by @renovate in https://github.com/upjs/facile-validator/pull/52
    • chore(deps): update dependency prettier to v2.6.1 by @renovate in https://github.com/upjs/facile-validator/pull/51
    • chore(deps): update dependency typescript to v4.6.3 by @renovate in https://github.com/upjs/facile-validator/pull/50
    • chore(deps): update typescript-eslint monorepo to v5.16.0 by @renovate in https://github.com/upjs/facile-validator/pull/49
    • chore(deps): update dependency vitest to v0.7.11 by @renovate in https://github.com/upjs/facile-validator/pull/48
    • chore(deps): update dependency eslint to v8.12.0 by @renovate in https://github.com/upjs/facile-validator/pull/53
    • chore(deps): update dependency vite to v2.9.1 by @renovate in https://github.com/upjs/facile-validator/pull/56
    • chore(deps): update jamesives/github-pages-deploy-action action to v4.3.0 by @renovate in https://github.com/upjs/facile-validator/pull/58
    • chore(deps): update typescript-eslint monorepo to v5.18.0 by @renovate in https://github.com/upjs/facile-validator/pull/55
    • chore(deps): update dependency prettier to v2.6.2 by @renovate in https://github.com/upjs/facile-validator/pull/57
    • chore(deps): update dependency vitest to v0.8.4 by @renovate in https://github.com/upjs/facile-validator/pull/54
    • chore(deps): update dependency vitest to v0.9.0 by @renovate in https://github.com/upjs/facile-validator/pull/59

    Full Changelog: https://github.com/upjs/facile-validator/blob/main/CHANGELOG.md#100-2022-04-07

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Mar 13, 2022)

    What's Changed

    • fix: use HTMLElement interface insteadof HTMLInputElement by @AliN11 in https://github.com/upjs/facile-validator/pull/32
    • feat: improve within to support array by @AliN11 in https://github.com/upjs/facile-validator/pull/33
    • chore(deps): update dependency vitest to v0.6.0 by @renovate in https://github.com/upjs/facile-validator/pull/34
    • chore(deps): update typescript-eslint monorepo to v5.14.0 by @renovate in https://github.com/upjs/facile-validator/pull/35
    • fix: rename files by @AliN11 in https://github.com/upjs/facile-validator/pull/36
    • chore(deps): update dependency eslint to v8.11.0 by @renovate in https://github.com/upjs/facile-validator/pull/37
    • Ali by @AliN11 in https://github.com/upjs/facile-validator/pull/38

    Full Changelog: https://github.com/upjs/facile-validator/blob/main/CHANGELOG.md#020-2022-03-13

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Mar 5, 2022)

    What's Changed

    • Refactor rules by @ms-fadaei in https://github.com/upjs/facile-validator/pull/1
    • rebase project by @ms-fadaei in https://github.com/upjs/facile-validator/pull/2
    • chore: add getType function by @AliN11 in https://github.com/upjs/facile-validator/pull/3
    • feat: add accepted rule by @AliN11 in https://github.com/upjs/facile-validator/pull/4
    • Ali by @AliN11 in https://github.com/upjs/facile-validator/pull/5
    • Refactor: support localization on error messages by @ms-fadaei in https://github.com/upjs/facile-validator/pull/6
    • refactor: refactored locale by @AliN11 in https://github.com/upjs/facile-validator/pull/7
    • feat: support for optional language by @AliN11 in https://github.com/upjs/facile-validator/pull/9
    • feat: add events support by @ms-fadaei in https://github.com/upjs/facile-validator/pull/8
    • feat: add alpha rule by @AliN11 in https://github.com/upjs/facile-validator/pull/10
    • feat: support async validation by @AliN11 in https://github.com/upjs/facile-validator/pull/11
    • refactor: refactor Validator class by @AliN11 in https://github.com/upjs/facile-validator/pull/12
    • feat: support dependency in rules by @ms-fadaei in https://github.com/upjs/facile-validator/pull/13
    • refactor: move replacers to their own files by @AliN11 in https://github.com/upjs/facile-validator/pull/14
    • refactor: refactor dependent rules by @ms-fadaei in https://github.com/upjs/facile-validator/pull/15
    • Ali by @AliN11 in https://github.com/upjs/facile-validator/pull/16
    • Added new rules by @AliN11 in https://github.com/upjs/facile-validator/pull/17
    • Configure Renovate by @renovate in https://github.com/upjs/facile-validator/pull/18
    • chore(deps): pin dependencies by @renovate in https://github.com/upjs/facile-validator/pull/19
    • chore(deps): update dependency vite to v2.8.6 by @renovate in https://github.com/upjs/facile-validator/pull/20
    • chore(deps): update jamesives/github-pages-deploy-action action to v4.2.5 by @renovate in https://github.com/upjs/facile-validator/pull/22
    • chore(deps): update dependency eslint to v8.10.0 by @renovate in https://github.com/upjs/facile-validator/pull/23
    • chore(deps): update dependency vitest to v0.5.9 by @renovate in https://github.com/upjs/facile-validator/pull/25
    • chore(deps): update dependency typescript to v4.6.2 by @renovate in https://github.com/upjs/facile-validator/pull/24
    • chore(deps): update typescript-eslint monorepo to v5.13.0 by @renovate in https://github.com/upjs/facile-validator/pull/27
    • chore(deps): update actions/checkout action to v3 by @renovate in https://github.com/upjs/facile-validator/pull/26
    • chore(deps): update dependency eslint-config-prettier to v8.5.0 by @renovate in https://github.com/upjs/facile-validator/pull/29
    • chore(deps): update actions/setup-node action to v3 by @renovate in https://github.com/upjs/facile-validator/pull/28

    New Contributors

    • @ms-fadaei made their first contribution in https://github.com/upjs/facile-validator/pull/1
    • @AliN11 made their first contribution in https://github.com/upjs/facile-validator/pull/3

    Full Changelog: https://github.com/upjs/facile-validator/commits/v0.1.0

    Source code(tar.gz)
    Source code(zip)
Facile is an HTML form validator that is inspired by Laravel's validation style and is designed for simplicity of use.

Facile is an HTML form validator that is inspired by Laravel's validation style and is designed for simplicity of use.

upjs 314 Dec 26, 2022
This Login Form made using React hooks , React Js , Css, Json. This form have 3 inputs, it also validate those inputs & it also having length limitations.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Yogesh Sharma 0 Jan 3, 2022
The fastest JSON schema Validator. Supports JSON Schema draft-04/06/07/2019-09/2020-12 and JSON Type Definition (RFC8927)

Ajv JSON schema validator The fastest JSON validator for Node.js and browser. Supports JSON Schema draft-06/07/2019-09/2020-12 (draft-04 is supported

Ajv JSON schema validator 12k Jan 4, 2023
ForgJs is a javascript lightweight object validator. Go check the Quick start section and start coding with love

Hey every one im really happy that this repo reached this many stars ?? ,but this repo needs your contibution I started to better document the code th

Hamdaoui Oussama 1.7k Dec 21, 2022
Tiny Validator for JSON Schema v4

Tiny Validator (for v4 JSON Schema) Use json-schema draft v4 to validate simple values and complex objects using a rich validation vocabulary (example

Geraint 1.2k Dec 21, 2022
A JSONSchema validator that uses code generation to be extremely fast

is-my-json-valid A JSONSchema validator that uses code generation to be extremely fast. It passes the entire JSONSchema v4 test suite except for remot

Mathias Buus 948 Dec 31, 2022
Super Fast Complex Object Validator for Javascript(& Typescript).

Super Fast Object Validator for Javascript(& Typescript). Safen supports the syntax similar to the type script interface. This makes it easy to create

Changwan Jun 31 Nov 25, 2022
Simple validator for Steuerliche Identifikationsnummer (German personal tax number) according to the official docs (see readme).

simple-de-taxid-validator Important Code of this validator is taken (with small changes like optimization or removing not needed elements) from THIS R

Wojciech 3 Feb 24, 2022
A simple environment variables validator for Node.js and web browsers

A simple environment variables validator for Node.js and web browsers

Mathieu Acthernoene 25 Jul 20, 2022
Fast, compiled, eval-free data validator/transformer

spectypes Fast, compiled, eval-free data validator/transformer Features really fast, can be even faster than ajv detailed errors, failure will result

null 65 Dec 29, 2022
Simple password validator made with Javascript 💛

Password Validator Simple password validator made with Javascript ?? Branch history base-code: a complex logic to password validator. In next branches

Lais Frigério 8 Jul 25, 2022
What does the Cosmos Hub validator set looks like without ICF delegations?

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Made in Block 2 Sep 2, 2022
This is the code repository of the official mun testnet validator node source code.

How to join Munchain network Infrastructure **Recommended configuration:** - Number of CPUs: 4 - Memory: 16GB - OS: Ubuntu 22.04 LTS - Allow all incom

MUN Blockchain 16 Dec 15, 2022
💪🏽 Form creation made easy, backed by state machines

Elderform Form handling without tears and predictable form state based on defined parameters. Elderform gives you everything you need to create robust

Joshua 27 Nov 6, 2022
HTML 5 & Bootstrap Jquery Form Validation Plugin

HTML 5 & Bootstrap Jquery Form Validation Plugin HTML 5 & Bootstrap 5 & Jquery 3 jbvalidator is a fresh new jQuery based form validation plugin that i

null 37 Dec 6, 2022
[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.

jQuery Form Validator [DISCONTINUED] Validation framework that let's you configure, rather than code, your validation logic. I started writing this pl

Victor Jonsson 976 Dec 30, 2022
Lightweight JavaScript form validation library inspired by CodeIgniter.

validate.js validate.js is a lightweight JavaScript form validation library inspired by CodeIgniter. Features Validate form fields from over a dozen r

Rick Harrison 2.6k Dec 15, 2022
Cross Browser HTML5 Form Validation.

Validatr Cross Browser HTML5 Form Validation. Getting Started View the documentation to learn how to use Validatr. Changelog Version 0.5.1 - 2013-03-1

Jay Morrow 279 Nov 1, 2022
The best @jquery plugin to validate form fields. Designed to use with Bootstrap + Zurb Foundation + Pure + SemanticUI + UIKit + Your own frameworks.

FormValidation - Download http://formvalidation.io - The best jQuery plugin to validate form fields, designed to use with: Bootstrap Foundation Pure S

FormValidation 2.8k Mar 29, 2021