Install

Validate supports multiple environments, including Node.js, Deno, and the browser (via CDN). Choose the setup that best fits your project.

Node.js

You can install the library using npm:

npm install @manoelfernandes/validate

Usage:

Default instance

import Validate from '@manoelfernandes/validate';

Validate.check("hello", "string");

Class constructor

import { Validate } from '@manoelfernandes/validate';

const validate = new Validate();
validate.check("hello", "string");

Deno

Import the library directly from GitHub:

Default instance

Class constructor

Browser (via CDN)

You can use Validate directly in the browser:

Default instance

Class constructor

Last updated