{"analyzedAt":"2022-08-07T21:00:54.426Z","collected":{"metadata":{"name":"i18n-zipcodes","scope":"unscoped","version":"5.0.0","description":"International zipcodes validator based on Regex for Node.js and the browser.","keywords":["i18n","zipcode","validator","international","regex"],"date":"2022-08-07T21:00:46.584Z","author":{"name":"Benjamin Blonde"},"publisher":{"username":"sarcadass","email":"sarcadass@gmail.com"},"maintainers":[{"username":"sarcadass","email":"sarcadass@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/sarcadass/i18n-zipcodes.git"},"links":{"npm":"https://www.npmjs.com/package/i18n-zipcodes","homepage":"https://github.com/sarcadass/i18n-zipcodes#readme","repository":"https://github.com/sarcadass/i18n-zipcodes","bugs":"https://github.com/sarcadass/i18n-zipcodes/issues"},"license":"MIT","devDependencies":{"array-uniq":"^3.0.0","browserify":"^17.0.0","chai":"^4.3.4","gulp":"^4.0.2","gulp-header":"^2.0.9","gulp-rename":"^2.0.0","gulp-uglify":"^3.0.2","mocha":"^9.0.0","nyc":"^15.1.0","vinyl-source-stream":"^2.0.0"},"releases":[{"from":"2022-07-08T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":0},{"from":"2022-05-09T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":0},{"from":"2022-02-08T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":0},{"from":"2021-08-07T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":0},{"from":"2020-08-07T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":1}],"hasTestScript":true,"hasSelectiveFiles":true,"readme":"# i18n-zipcodes [![Build Status](https://travis-ci.org/sarcadass/i18n-zipcodes.svg?branch=master)](https://travis-ci.org/sarcadass/i18n-zipcodes) [![codecov](https://codecov.io/gh/sarcadass/i18n-zipcodes/branch/master/graph/badge.svg)](https://codecov.io/gh/sarcadass/i18n-zipcodes)\n\nInternational zipcodes validator in Javascript, based on Regex for Node.js and the browser.\n\n## Install\n\n### For Node.js:\n```sh\n$ npm install i18n-zipcodes\n```\n\n### For the browser:\n* Download the script in the `dist` folder\n\n\n## Usage\n\n```js\ni18nZipcodes(countryCode: string, zipCode: string): boolean\n// countryCode param is case insensitive\n```\n\n### For Node.js\n```js\n// CommonJS Syntax\nconst i18nZipcodes = require('i18n-zipcodes');\n// or ES Syntax\nimport i18nZipcodes from 'i18n-zipcodes';\n\ni18nZipcodes('US', '90210'); // true\n\ni18nZipcodes('fr', '5632'); // false\n```\n\n### For the browser\n```html\n<script src=\"i18n-zipcodes.min.js\"></script>\n<script>\n    console.log(i18nZipcodes('fr', '75014')); // true\n</script>\n```\n\n\n## 115 Countries supported\nCountry codes use the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) format.\n\n### A\n- 🇦🇩 (`AD`) Andorra\n- 🇦🇲 (`AM`) Armenia\n- 🇦🇷 (`AR`) Argentina\n- 🇦🇸 (`AS`) American Samoa\n- 🇦🇹 (`AT`) Austria\n- 🇦🇺 (`AU`) Australia\n- 🇦🇿 (`AZ`) Azerbaijan\n\n### B\n- 🇧🇦 (`BA`) Bosnia and Herzegovina\n- 🇧🇩 (`BD`) Bangladesh\n- 🇧🇪 (`BE`) Belgium\n- 🇧🇬 (`BG`) Bulgaria\n- 🇧🇯 (`BJ`) Benin\n- 🇧🇲 (`BM`) Bermuda\n- 🇧🇳 (`BN`) Brunei\n- 🇧🇷 (`BR`) Brazil\n- 🇧🇾 (`BY`) Belarus\n\n### C\n- 🇨🇦 (`CA`) Canada\n- 🇨🇭 (`CH`) Switzerland\n- 🇨🇳 (`CN`) China\n- 🇨🇺 (`CU`) Cuba\n- 🇨🇽 (`CX`) Christmas Island\n- 🇨🇾 (`CY`) Cyprus\n- 🇨🇿 (`CZ`) Czechia\n\n### D\n- 🇩🇪 (`DE`) Germany\n- 🇩🇰 (`DK`) Denmark\n- 🇩🇿 (`DZ`) Algeria\n\n### E\n- 🇪🇪 (`EE`) Estonia\n- 🇪🇸 (`ES`) Spain\n\n### F\n- 🇫🇮 (`FI`) Finland\n- 🇫🇲 (`FM`) Micronesia\n- 🇫🇴 (`FO`) Faroe Islands\n- 🇫🇷 (`FR`) France\n\n### G\n- 🇬🇪 (`GE`) Georgia\n- 🇬🇫 (`GF`) French Guiana\n- 🇬🇱 (`GL`) Greenland\n- 🇬🇵 (`GP`) Guadeloupe\n- 🇬🇷 (`GR`) Greece\n- 🇬🇹 (`GT`) Guatemala\n- 🇬🇺 (`GU`) Guam\n- 🇬🇼 (`GW`) Guinea-Bissau\n\n### H\n- 🇭🇷 (`HR`) Croatia\n- 🇭🇺 (`HU`) Hungary\n\n### I\n- 🇮🇨 (`IC`) Canary Islands\n- 🇮🇩 (`ID`) Indonesia\n- 🇮🇪 (`IE`) Ireland\n- 🇮🇱 (`IL`) Israel\n- 🇮🇳 (`IN`) Inde\n- 🇮🇸 (`IS`) Iceland\n- 🇮🇹 (`IT`) Italy\n\n### J\n- 🇯🇵 (`JP`) Japan\n\n### K\n- 🇰🇪 (`KE`) Kenya\n- 🇰🇬 (`KG`) Kyrgyzstan\n- 🇰🇷 (`KR`) South Korea\n- 🇰🇼 (`KW`) Kuwait\n- 🇰🇿 (`KZ`) Kazakhstan\n\n### L\n- 🇱🇮 (`LI`) Liechtenstein\n- 🇱🇹 (`LT`) Lithuania\n- 🇱🇺 (`LU`) Luxembourg\n- 🇱🇻 (`LV`) Latvia\n\n### M\n- 🇲🇦 (`MA`) Morocco\n- 🇲🇩 (`MD`) Moldova\n- 🇲🇪 (`ME`) Montenegro\n- 🇲🇬 (`MG`) Madagascar\n- 🇲🇭 (`MH`) Marshall Islands\n- 🇲🇰 (`MK`) North Macedonia\n- 🇲🇲 (`MM`) Myanmar\n- 🇲🇳 (`MN`) Mongolia\n- 🇲🇵 (`MP`) Northern Mariana Islands\n- 🇲🇶 (`MQ`) Martinique\n- 🇲🇹 (`MT`) Malta\n- 🇲🇻 (`MV`) Maldives\n- 🇲🇽 (`MX`) Mexico\n- 🇲🇾 (`MY`) Malaysia\n- 🇲🇿 (`MZ`) Mozambique\n\n### N\n- 🇳🇱 (`NL`) Netherlands\n- 🇳🇴 (`NO`) Norway\n- 🇳🇿 (`NZ`) New Zealand\n\n### P\n- 🇵🇭 (`PH`) Philippines\n- 🇵🇰 (`PK`) Pakistan\n- 🇵🇱 (`PL`) Poland\n- 🇫🇷 (`PM`) Saint Pierre and Miquelon\n- 🇵🇷 (`PR`) Puerto Rico\n- 🇵🇸 (`PS`) Palestine\n- 🇵🇹 (`PT`) Portugal\n- 🇵🇼 (`PW`) Palau\n\n### R\n- 🇷🇪 (`RE`) Réunion\n- 🇷🇴 (`RO`) Romania\n- 🇷🇸 (`RS`) Serbia\n- 🇷🇺 (`RU`) Russian Federation\n\n### S\n- 🇸🇦 (`SA`) Saudi Arabia\n- 🇸🇩 (`SD`) Sudan\n- 🇸🇪 (`SE`) Sweden\n- 🇸🇬 (`SG`) Singapore\n- 🇸🇮 (`SI`) Slovenia\n- 🇸🇰 (`SK`) Slovakia\n- 🇸🇲 (`SM`) San Marino\n- 🇸🇿 (`SZ`) Swaziland\n\n### T\n- 🇹🇭 (`TH`) Thailand\n- 🇹🇯 (`TJ`) Tajikistan\n- 🇹🇲 (`TM`) Turkmenistan\n- 🇹🇳 (`TN`) Tunisia\n- 🇹🇷 (`TR`) Turkey\n- 🇹🇼 (`TW`) Taiwan\n\n### U\n- 🇺🇦 (`UA`) Ukraine\n- 🇬🇧 (`UK`) United Kingdom\n- 🇺🇸 (`US`) United States of America\n- 🇺🇾 (`UY`) Uruguay\n- 🇺🇿 (`UZ`) Uzbekistan\n\n### V\n- 🇻🇪 (`VE`) Venezuela\n- 🇻🇮 (`VI`) Virgin Islands (U.S.)\n- 🇻🇳 (`VN`) Viet Nam\n\n### X\n- 🇽🇰 (`XK`) Kosovo\n\n### Y\n- (`YU`) Yugoslavia\n\n### Z\n- 🇿🇦 (`ZA`) South Africa\n- 🇿🇲 (`ZM`) Zambia"},"npm":{"downloads":[{"from":"2022-08-06T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":12},{"from":"2022-07-31T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":380},{"from":"2022-07-08T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":1769},{"from":"2022-05-09T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":6404},{"from":"2022-02-08T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":12319},{"from":"2021-08-07T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":20462}],"starsCount":0},"github":{"starsCount":20,"forksCount":7,"subscribersCount":3,"issues":{"count":36,"openCount":0,"distribution":{"3600":14,"10800":0,"32400":0,"97200":2,"291600":1,"874800":2,"2624400":2,"7873200":8,"23619600":5,"70858800":2,"212576400":0},"isDisabled":false},"contributors":[{"username":"sarcadass","commitsCount":30},{"username":"jariz","commitsCount":3},{"username":"DosOvO","commitsCount":2},{"username":"dependabot[bot]","commitsCount":1},{"username":"rpaasche","commitsCount":2}],"commits":[{"from":"2022-07-31T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":2},{"from":"2022-07-08T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":2},{"from":"2022-05-09T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":2},{"from":"2022-02-08T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":2},{"from":"2021-08-07T00:00:00.000Z","to":"2022-08-07T00:00:00.000Z","count":2}],"statuses":[{"context":"codecov/patch","state":"success"},{"context":"codecov/project","state":"success"}]},"source":{"files":{"readmeSize":4499,"testsSize":3447,"hasChangelog":true},"badges":[{"urls":{"original":"https://travis-ci.org/sarcadass/i18n-zipcodes.svg?branch=master","service":"https://api.travis-ci.org/sarcadass/i18n-zipcodes.svg?branch=master","shields":"https://img.shields.io/travis/sarcadass/i18n-zipcodes/master.svg","content":"https://img.shields.io/travis/sarcadass/i18n-zipcodes/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}}],"coverage":1}},"evaluation":{"quality":{"carefulness":0.8699999999999999,"tests":1,"health":1,"branding":0.15},"popularity":{"communityInterest":35,"downloadsCount":2134.6666666666665,"downloadsAcceleration":3.8212519025875196,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":1,"issuesDistribution":0.9}},"score":{"final":0.6710367608629755,"detail":{"quality":0.9697085206302566,"popularity":0.08616277290362348,"maintenance":0.9999063833075152}}}