npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

validate-fr

v1.0.1

Published

Validation des identifiants français : SIRET, SIREN, TVA, IBAN, code postal, téléphone.

Readme

validate-fr

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).

Install

npm install validate-fr

Usage

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"

API

| 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.

Validation en temps réel (API)

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.

License

MIT © KIPDEV — kipdev.io