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

1.2.0 • Public • Published






Installation

1. Install the package

npm i axval
yarn add axval

2. Get started

import Axval from "../../index";

const verify = Axval.verify({
  type: {
    field: "email",
  },
  value: "example@email.com",
});

console.log(verify);

Response:

Sucess:

{
  "success": true,
  "message": "O valor é válido",
  "type": { "field": "email" }
}

Error:

{
  "success": false,
  "message": "O valor não é válido",
  "type": { "field": "email" }
}

3. Explore methods

import Axval from "../../index";

const mask = Axval.mask({
  mask: "000-000-000;000",
  value: "2223334445",
});

console.log(mask)



Com amor Gustavo Cardilho ❤️

Package Sidebar

Install

npm i axval

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

58.2 kB

Total Files

29

Last publish

Collaborators

  • kyoudan