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

@rezdevops/pii-detectors

v1.1.0

Published

Détecteurs déterministes de données à caractère personnel (PII) — bibliothèque pure, sans I/O ni DOM. 12 détecteurs : email, téléphone FR, NIR, IBAN, BIC, SIRET, TVA intracom FR, carte bancaire (Luhn), code postal FR, plaque immat FR, date de naissance, a

Readme

@rezdevops/pii-detectors

Détecteurs déterministes de données à caractère personnel (PII) pour le contexte français. Bibliothèque pure : aucune I/O, aucun DOM, aucune dépendance Angular ou Node. Tout détecteur prend une chaîne (ou un flux de chaînes) et émet un flux de findings typés.

Statut : pré-v0.1.0. Le squelette est posé en sprint S0 du projet pii-scanner-web. Les 5 détecteurs cœur (email, téléphone FR, NIR, IBAN, SIRET) arrivent en S1 — tag v0.1.0 du monorepo.

Pourquoi une lib séparée

Trois raisons :

  1. Réutilisabilité hors web. Un futur CLI Node, un binaire Tauri ou un script de pré-commit pourra l'embarquer sans tirer Angular. La logique de détection est indépendante de la couche d'orchestration et de l'UI.
  2. Surface de tests claire. Chaque détecteur est unitairement testable avec des fixtures positives et négatives. Pas de mock DOM, pas de polyfill, pas d'environnement Angular.
  3. Auditabilité. Un DPO ou un développeur tiers peut lire le code des détecteurs sans naviguer dans une SPA.

Détecteurs prévus en v1.0

| Détecteur | Validation | Confiance type | Sévérité par défaut | | ------------------ | -------------------------------------- | --------------------------- | ------------------- | | Email | RFC 5322 simplifiée | haute | moyenne | | Téléphone FR | Format 0X XX XX XX XX / +33 X... | haute | moyenne | | NIR | Clé MOD 97 (formule officielle INSEE) | très haute si clé valide | critique | | SIRET / SIREN | Luhn (sauf cas La Poste) | haute | moyenne | | TVA intracom FR | Luhn sur SIREN | haute | moyenne | | IBAN | MOD 97, longueur par pays | très haute si MOD 97 valide | critique | | BIC / SWIFT | ISO 9362 | moyenne | moyenne | | Carte bancaire | Luhn, identification émetteur | haute | critique | | Code postal FR | Plage 01000-98890 | haute | basse | | Adresse postale FR | Heuristique contextuelle | moyenne | moyenne | | Plaque immat. FR | SIV depuis 2009 + ancien format | haute | moyenne | | Date de naissance | Date + en-tête de colonne contextuelle | moyenne | moyenne |

Le détail des algorithmes, des sources normatives et des exemples positifs/négatifs est consolidé dans docs/detecteurs.md du monorepo.

API publique (cible)

import {
  detect,
  type Finding,
  type Detector,
  Severity,
} from "@rezdevops/pii-detectors";

const findings: Finding[] = detect(text, {
  detectors: ["email", "iban", "nir"],
});

Les types Finding, Detector, Severity et Confidence sont stables dès v0.1.0 (semver).

Licence

AGPL-3.0-only. Si vous embarquez cette lib dans un service réseau, l'AGPL impose la publication du code modifié auprès de vos utilisateurs. C'est volontaire — voir docs/adr/0002-licence-agpl.md du monorepo.

Auteur

Rudy Rezaire — RezDevOps.