
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socketโs AI scanner detected the supply chain attack and flagged the malware.
i18n-zipcodes
Advanced tools
International zipcodes validator based on Regex for Node.js and the browser.
International zipcodes validator in Javascript, based on Regex for Node.js and the browser.
$ npm install i18n-zipcodes
dist
folderi18nZipcodes(countryCode: string, zipCode: string): boolean
// countryCode param is case insensitive
// CommonJS Syntax
const i18nZipcodes = require('i18n-zipcodes');
// or ES Syntax
import i18nZipcodes from 'i18n-zipcodes';
i18nZipcodes('US', '90210'); // true
i18nZipcodes('fr', '5632'); // false
<script src="i18n-zipcodes.min.js"></script>
<script>
console.log(i18nZipcodes('fr', '75014')); // true
</script>
Country codes use the ISO 3166-1 format.
AD
) AndorraAM
) ArmeniaAR
) ArgentinaAS
) American SamoaAT
) AustriaAU
) AustraliaAZ
) AzerbaijanBA
) Bosnia and HerzegovinaBD
) BangladeshBE
) BelgiumBG
) BulgariaBJ
) BeninBM
) BermudaBN
) BruneiBR
) BrazilBY
) BelarusCA
) CanadaCH
) SwitzerlandCN
) ChinaCU
) CubaCX
) Christmas IslandCY
) CyprusCZ
) CzechiaDE
) GermanyDK
) DenmarkDZ
) AlgeriaEE
) EstoniaES
) SpainFI
) FinlandFM
) MicronesiaFO
) Faroe IslandsFR
) FranceGE
) GeorgiaGF
) French GuianaGL
) GreenlandGP
) GuadeloupeGR
) GreeceGT
) GuatemalaGU
) GuamGW
) Guinea-BissauHR
) CroatiaHU
) HungaryIC
) Canary IslandsID
) IndonesiaIE
) IrelandIL
) IsraelIN
) IndeIS
) IcelandIT
) ItalyJP
) JapanKE
) KenyaKG
) KyrgyzstanKR
) South KoreaKW
) KuwaitKZ
) KazakhstanLI
) LiechtensteinLT
) LithuaniaLU
) LuxembourgLV
) LatviaMA
) MoroccoMD
) MoldovaME
) MontenegroMG
) MadagascarMH
) Marshall IslandsMK
) North MacedoniaMM
) MyanmarMN
) MongoliaMP
) Northern Mariana IslandsMQ
) MartiniqueMT
) MaltaMV
) MaldivesMX
) MexicoMY
) MalaysiaMZ
) MozambiqueNL
) NetherlandsNO
) NorwayNZ
) New ZealandPH
) PhilippinesPK
) PakistanPL
) PolandPM
) Saint Pierre and MiquelonPR
) Puerto RicoPS
) PalestinePT
) PortugalPW
) PalauRE
) RรฉunionRO
) RomaniaRS
) SerbiaRU
) Russian FederationSA
) Saudi ArabiaSD
) SudanSE
) SwedenSG
) SingaporeSI
) SloveniaSK
) SlovakiaSM
) San MarinoSZ
) SwazilandTH
) ThailandTJ
) TajikistanTM
) TurkmenistanTN
) TunisiaTR
) TurkeyTW
) TaiwanUA
) UkraineUK
) United KingdomUS
) United States of AmericaUY
) UruguayUZ
) UzbekistanVE
) VenezuelaVI
) Virgin Islands (U.S.)VN
) Viet NamXK
) KosovoYU
) YugoslaviaZA
) South AfricaZM
) Zambiav5.0.0
IL
zipcode regex @DosOvOFAQs
International zipcodes validator based on Regex for Node.js and the browser.
The npm package i18n-zipcodes receives a total of 213 weekly downloads. As such, i18n-zipcodes popularity was classified as not popular.
We found that i18n-zipcodes 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.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socketโs AI scanner detected the supply chain attack and flagged the malware.
Security News
CISAโs 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.