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

@voidrco/redaction

v1.0.1

Published

Sensitive data (PII) detection and redaction for JavaScript/TypeScript. Zero dependencies, works in Node, browsers, React Native.

Readme

@voidrco/redaction

Detecção e redaction de dados sensíveis (PII) para JavaScript/TypeScript, por Voidr. Zero dependências, síncrono, roda em Node.js, browsers e React Native.

Um único package para mascarar PII em qualquer ponto do stack: texto livre, objetos JSON, headers HTTP, URLs, bodies de requisição e saídas de agentes.

Instalação

npm install @voidrco/redaction

Requer Node ≥ 18. Em runtime roda em qualquer engine JS moderna (nenhum regex usa lookbehind — compatível com JavaScriptCore e Hermes).

Uso rápido

import { redact, redactObject, analyze } from "@voidrco/redaction";

redact("cliente cpf 529.982.247-25, cartão 4111 1111 1111 1111");
// → "cliente cpf <CPF>, cartão <CREDIT_CARD>"

redactObject({
  senha: "hunter2",                       // chave proibida → sempre redigida
  observacao: "email [email protected]", // valor analisado por padrão
});
// → { senha: "<SENSITIVE_KEY>", observacao: "email <EMAIL_ADDRESS>" }

analyze("cpf 529.982.247-25");
// → [{ entityType: "CPF", start: 4, end: 18, score: 1, ... }]

Payloads HTTP e egress

import { redactHeaders, redactUrl, redactBody, EgressRedactor } from "@voidrco/redaction";

redactHeaders, redactUrl e redactBody cobrem tráfego de rede, logs de acesso e afins. EgressRedactor mantém estado aprendido para saídas de banco e pipelines de agente.

Entidades detectadas por padrão

CPF, CNPJ (incl. alfanumérico), CEP, PHONE_NUMBER (BR e US), RG, DATE, US_SSN, EMAIL_ADDRESS, CREDIT_CARD, IBAN_CODE, IP_ADDRESS (IPv4/IPv6), URL, CRYPTO, JWT.

Detecções com checksum (CPF, CNPJ, cartão via Luhn, IBAN via mod-97) são validadas; palavras de contexto próximas ajustam o score. Só o que passa do scoreThreshold (default 0.4) é redigido. É possível estender com recognizers customizados, denylist de chaves e operators próprios.

Documentação

Documentação completa em docs.voidr.co.

Licença

Proprietária — veja o arquivo LICENSE.