
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
@br-validators/vue
Advanced tools
Vue 3 composables for Brazilian document validators — delegates to @br-validators/core
Vue 3 composables that delegate validation and formatting to @br-validators/core v1.8.2.
pnpm add @br-validators/vue @br-validators/core vue
Peer dependencies: vue ^3.5.0, @br-validators/core
<script setup lang="ts">
import { useBrValidator } from '@br-validators/vue';
const cpf = useBrValidator('cpf');
</script>
<template>
<input v-model="cpf.value" />
<p v-if="cpf.error">{{ cpf.error }}</p>
<p v-else-if="cpf.isValid">Formatted: {{ cpf.formatted }}</p>
</template>
| Composable | Core delegate |
|---|---|
useCpf() | validateCpf / formatCpf |
useCnpj() | validateCnpj / formatCnpj |
useCep() | validateCep / formatCep |
useTelefone() | validateTelefone / formatTelefone |
usePix() | validatePixKey / formatPixKey |
useInscricaoEstadual({ uf }) | validateInscricaoEstadual / formatInscricaoEstadual |
Each composable exposes reactive value, error, formatted, isValid, and validate().
import { ref } from 'vue';
import { useInscricaoEstadual } from '@br-validators/vue';
const uf = ref<'SP' | 'RJ'>('SP');
const ie = useInscricaoEstadual({ uf });
import { usePix } from '@br-validators/vue';
const pix = usePix({ pixType: 'email' });
Invalid values surface the same message string returned by core validate*.
Official algorithm sources: docs/OFFICIAL-SOURCES.md.
MIT
FAQs
Vue 3 composables for Brazilian document validators — delegates to @br-validators/core
The npm package @br-validators/vue receives a total of 1,533 weekly downloads. As such, @br-validators/vue popularity was classified as popular.
We found that @br-validators/vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.