Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
validate-polish
Advanced tools
Utility library for validation of PESEL, NIP, REGON, identity card etc. Aimed mostly at Polish enviroment. [Polish] Walidacja numerów pesel, nip, regon, dowodu osobistego.
npm i validate-polish
import { validatePolish } from 'validate-polish';
if (!validatePolish.pesel(`92060512181`)) {
throw new Error(`Invalid pesel.`);
}
if (!validatePolish.nip('115667734')) {
throw new Error(`Invalid nip.`);
}
if (!validatePolish.regon(`1251677`)) {
throw new Error(`Invalid regon.`);
}
if (!validatePolish.identityCard(`14124142`)) {
throw new Error(`Invalid identity card.`);
}
In browser validate-polish package is wrapped twice validatePolish.validatePolish
.
<script src="https://cdn.jsdelivr.net/npm/validate-polish@latest/dist/index.browser.js"></script>
<script>
console.log(validatePolish.validatePolish);
</script>
FAQs
Utility library for validation of PESEL, NIP, REGON, identity card etc. Aimed mostly at Polish environment. [Polish] Walidacja numerów pesel, nip, regon, dowodu osobistego.
The npm package validate-polish receives a total of 1,968 weekly downloads. As such, validate-polish popularity was classified as popular.
We found that validate-polish demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.