Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
regex-vault
Advanced tools
regex-vault is a centralized library of regular expressions for validation, security, and efficient data manipulation.
For the English version of this README, click here.
regex-vault é uma biblioteca centralizada de padrões regex projetada para economizar tempo de desenvolvimento e garantir reutilização. Este projeto visa simplificar processos de validação, proteger operações de backend e tornar a implementação de regex mais fácil para desenvolvedores. Ele inclui uma ampla variedade de padrões regex para validação de entrada, segurança e manipulação de dados.
Instale regex-vault via npm:
npm install regex-vault
Importe os padrões regex ou funções utilitárias no seu projeto:
import { emailRegex, ipv4Regex } from 'regex-vault';
// Validar um e-mail
const email = "example@domain.com";
if (!emailRegex.test(email)) {
console.log("E-mail inválido");
}
// Validar um endereço IPv4
const ip = "192.168.1.1";
if (ipv4Regex.test(ip)) {
console.log("Endereço IPv4 válido");
}
A biblioteca inclui muitos outros padrões regex úteis para diferentes finalidades, garantindo flexibilidade e segurança no uso de expressões regulares.
Contribuições são bem-vindas! Se você tiver um padrão regex útil, sinta-se à vontade para abrir um pull request ou relatar um problema.
git clone <forked-repo-url>
).git checkout -b feature/minha-nova-regex
).git commit -m 'Adicionar nova regex para XYZ'
).git push origin feature/minha-nova-regex
).A biblioteca inclui testes unitários para garantir a precisão de todos os padrões regex. Execute os testes com:
npm test
regex-vault é licenciado sob a Apache License. Veja o arquivo LICENSE ou visite Apache License 2.0.
FAQs
regex-vault is a centralized library of regular expressions for validation, security, and efficient data manipulation.
The npm package regex-vault receives a total of 149 weekly downloads. As such, regex-vault popularity was classified as not popular.
We found that regex-vault demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.