🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

abolish-browser

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abolish-browser

Browser version of abolish javascript validator

0.0.17
latest
Source
npm
Version published
Weekly downloads
24
242.86%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

abolish

FAQs

Package last updated on 04 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts