
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
validate-fr
Advanced tools
Validation des identifiants français : SIRET, SIREN, TVA, IBAN, code postal, téléphone.
Validation des identifiants français — zéro dépendance, ESM + CJS + types.
SIREN, SIRET, TVA intracommunautaire, IBAN, code postal, téléphone. Validation de format et de clé de contrôle (Luhn, mod-97 IBAN, clé TVA).
🔎 Besoin de vérifier en base réelle ?
Cette lib valide le format et la clé (hors-ligne, gratuit). Pour savoir si une entreprise est réellement immatriculée et active, si un IBAN/RIB existe ou récupérer la raison sociale depuis un SIRET, utilisez l'API → data-checker.fr (validation email / téléphone / SIRET / IBAN en temps réel).
npm install validate-fr
import {
isValidSiren, isValidSiret, isValidVatFr,
isValidIban, isValidCodePostal, isValidPhoneFr,
formatPhoneFr, sirenFromSiret,
} from "validate-fr";
isValidSiren("732 829 320"); // true
isValidSiret("732 829 320 00074"); // true
isValidVatFr("FR44732829320"); // true
isValidIban("FR14 2004 1010 0505 0001 3M02 606"); // true
isValidIban("DE89...", "DE"); // restreint au pays
isValidCodePostal("97400"); // true (DOM)
isValidPhoneFr("06 12 34 56 78"); // true
formatPhoneFr("06.12.34.56.78"); // "+33612345678"
sirenFromSiret("73282932000074"); // "732829320"
| Fonction | Renvoie | Notes |
|---|---|---|
isValidSiren(s) | boolean | 9 chiffres, Luhn (+ cas La Poste) |
isValidSiret(s) | boolean | 14 chiffres, Luhn (+ cas La Poste) |
isValidVatFr(s) | boolean | FR + clé + SIREN, clé (12 + 3·(SIREN mod 97)) mod 97 |
isValidIban(s, country?) | boolean | mod-97 ISO 13616, longueur par pays |
isValidCodePostal(s) | boolean | 5 chiffres, départements valides + DOM/TOM |
isValidPhoneFr(s) | boolean | fixe/mobile, 0X / +33 / 0033 |
formatPhoneFr(s) | string | null | format E.164 |
sirenFromSiret(s) | string | null | extrait le SIREN |
Tous les validateurs tolèrent espaces et points.
validate-fr s'arrête à la cohérence mathématique. Pour aller plus loin :
| Besoin | Cette lib | API data-checker.fr |
|---|---|---|
| Format & clé de contrôle | ✅ | ✅ |
| Entreprise réellement immatriculée / active | ❌ | ✅ |
| Raison sociale, adresse depuis un SIRET | ❌ | ✅ |
| IBAN/RIB existant, email/téléphone valides | ❌ | ✅ |
👉 data-checker.fr — API B2B de validation de données françaises.
MIT © KIPDEV — kipdev.io
FAQs
Validation des identifiants français : SIRET, SIREN, TVA, IBAN, code postal, téléphone.
The npm package validate-fr receives a total of 1 weekly downloads. As such, validate-fr popularity was classified as not popular.
We found that validate-fr 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.