Giter Site home page Giter Site logo

axe-api / validator Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 1.0 1.79 MB

Rule-based data validation library in Node.js

Home Page: https://validator.axe-api.com

License: MIT License

JavaScript 1.19% TypeScript 98.62% Shell 0.19%
nodejs validate-form validate-js validate-using-javascript validatejs validater validation validation-library validator validatorjs

validator's Introduction

Axe API is a TypeScript-based Node.js framework designed to eliminate the need for repetitive tasks associated with common elements while allowing developers to focus on custom logic.

It offers a comprehensive structure for your API, including numerous features and best practices that will save you time.

Video Introduction

Documentation

Axe API has great documentation. Please check it out in here.

License

MIT License

validator's People

Contributors

dependabot[bot] avatar ozziest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

goldrak

validator's Issues

Password Confirmation from documentation and the actual code does not match

Hi amazing package by the way really appreciate it.

I just wanted to notify that the confirmed rule format from the documentation still uses the {field}_confirmation format but when reviewing the code it uses the {field}_confirmed. Which confused me for a while when using the package.

Keep the solid work up ๐Ÿ‘Œ.

Nullable rule

Hello,
First of all, thank you for the package, it works very well.

I'm trying to add a new rule for null cases but I can't get it to work.

I can't figure out why.

const isNullable = (value) => {
    if (value === null  || value === 'null') {
        return true;
    }
    return false;
};

register(
    'nullable',
    isNullable,
    {
        en: "The {0} field must be null or empty."
    }
)

All the best.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.