0.0.17 • Published 3 years ago

abolish-browser v0.0.17

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

Abolish for browser

To use abolish directly in your browser without package managers.

From CDN

<script src="https://cdn.jsdelivr.net/npm/abolish-browser/abolish.min.js"></script>

Abolish is exposed as window.Abolish while Rule is exposed as window.AbolishRule ParseRules is exposed as window.AbolishParseRules

<script>
    const form = {
        age: 10
    };

    const rules = {
        age: 'max:5'
    };

    console.log(Abolish.validate(form, rules))
</script>
{
  "error": {
    "key": "age",
    "type": "validator",
    "validator": "max",
    "message": "Age is too big. (Max. 5)",
    "data": null
  }
}

visit abolish documentation

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago