{"analyzedAt":"2022-06-24T23:59:15.320Z","collected":{"metadata":{"name":"zipcodes-nrviens","scope":"unscoped","version":"8.0.6","description":"Useful zipcode database with helper methods. Contains a zip code to fips code (county code) lookup. Also has the ability to lookup state abbreviation to state name and vice-versa.","keywords":["zipcode"],"date":"2020-08-03T15:08:13.040Z","author":{"name":"Nick Viens","email":"nrviens@gmail.com","username":"nrviens"},"publisher":{"username":"nrviens","email":"nrviens@gmail.com"},"maintainers":[{"username":"nrviens","email":"nrviens@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/nrviens/zipcodes.git"},"links":{"npm":"https://www.npmjs.com/package/zipcodes-nrviens","homepage":"https://github.com/nrviens/zipcodes#readme","repository":"https://github.com/nrviens/zipcodes","bugs":"http://github.com/nrviens/zipcodes/issues"},"license":"BSD-2-Clause","devDependencies":{"istanbul":"^0.4.5","vows":"^0.8.1"},"releases":[{"from":"2022-05-25T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2022-03-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2021-12-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2021-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":1},{"from":"2020-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":8}],"hasTestScript":true,"readme":"Zip Code Lookups\n================\n\nNote: This is a fork of [davglass' zipcode lookup project](https://github.com/davglass/zipcodes).\n\n[![Build Status](https://travis-ci.org/davglass/zipcodes.svg?branch=master)](https://travis-ci.org/davglass/zipcodes)\n\nA localized (flatfile) zipcode lookup.\n\nUSA zip codes data was taken from here: http://federalgovernmentzipcodes.us/\n\nCanada zip codes data was taken from here: https://www.aggdata.com/download_sample.php?file=ca_postal_codes.csv\n\nIt was then transformed into a JSON object and then wrapped with some helper methods.\n\n> In addition to the data provided above, this fork includes county names and county codes.\n\nThis has the inclusion of county data (fips county code and county name) which was taken from here: https://www.nrcs.usda.gov/wps/portal/nrcs/detail/national/home/?cid=nrcs143_013697#\n* This includes county FIPS Code to County name and state\n\nThe zip code to FIPS code data was taken from here: https://www.huduser.gov/portal/datasets/usps_crosswalk.html#data\n* This includes the Zip code to FIPS County code\n\nAfter combining these two datasets, I ended up with a new dataset of Zip Code, FIPS County Code, County Name, and State.\n\nThis data has been included in the existing data from the forked project to add additional detail to the zip code lookup\n\nUsage\n-----\n\n    var zipcodes = require('zipcodes-nrviens');\n\n\nZipcode Lookup\n--------------\n\n    var motown = zipcodes.lookup(26505);\n\n    {\n        \"zip\": \"26505\",\n        \"latitude\": 39.6505,\n        \"longitude\": -79.944,\n        \"city\": \"Morgantown\",\n        \"state\": \"WV\",\n        \"country\": \"US\",\n        \"fips\": 54061,\n        \"county\": \"Monongalia\"\n    }\n\nDistance\n--------\n\nThis is not driving distance, it's line of sight distance\n\n\n    var dist = zipcodes.distance(62959, 90210); //In Miles\n    // dist = 1662\n\n    var kilo = zipcodes.toKilometers(dist); //Convert to Kilometers\n    // kilo = 2675\n\n    var miles = zipcodes.toMiles(zipcodes.toKilometers(dist)); //Convert to Kilometers, then to miles\n    // miles = 1662\n\n\nLookup By Name\n--------------\n\n*This does not work on the Canada data, the data file doesn't include this much detail.*\n\n    var l = zipcodes.lookupByName('Cupertino', 'CA');\n    \n    //Always returns an array, since cities can have multiple zip codes\n    [\n        {\n            \"zip\": \"95014\",\n            \"latitude\": 37.318,\n            \"longitude\": -122.0449,\n            \"city\": \"Cupertino\",\n            \"state\": \"CA\",\n            \"country\": \"US\",\n            \"fips\": \"06085\",\n            \"county\": \"Santa Clara\"\n        },\n        {\n            \"zip\": \"95015\",\n            \"latitude\": 37.323,\n            \"longitude\": -122.0527,\n            \"city\": \"Cupertino\",\n            \"state\": \"CA\",\n            \"country\": \"US\",\n            \"fips\": \"06085\",\n            \"county\": \"Santa Clara\"\n        }\n    ]\n\n\nLookup by Radius\n----------------\n\nGet all zipcodes within the milage radius of this zipcode\n\n    var rad = zipcodes.radius(95014, 50);\n    // rad.length == 385\n\n    [ '93901',\n      '93902',\n      '93905',\n      '93906',\n      '93907',\n      '93912',\n      '93933',\n      '93942',\n      '93944',\n      '93950',\n      ...\n      '95377',\n      '95378',\n      '95385',\n      '95387',\n      '95391' \n    ]\n\nZipcode Random\n--------------\n\n    var zipObj = zipcodes.random();\n\n    {\n        \"zip\": \"60944\",\n        \"latitude\": 41.0634,\n        \"longitude\": -87.625,\n        \"city\": \"Hopkins Park\",\n        \"state\": \"IL\",\n        \"country\": \"US\",\n        \"fips\": 17091,\n        \"county\": \"Kankakee\"\n    }\n\nDevelopment\n-----------\n\nThe original CSV file that I am using for this data is not included in this repo, but I did wrap up\nthe best way to get the data and how to convert it into the format that this module uses.\n\nTo develop with this module, just `make` it and it will fetch the latest zipcodes and reprocess them.\n\n    make\n\nTo just fetch and process the zipcodes:\n\n    make codes\n\nTo run the very simple test suite:\n\n    make tests"},"npm":{"downloads":[{"from":"2022-06-23T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":34},{"from":"2022-06-17T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":175},{"from":"2022-05-25T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":844},{"from":"2022-03-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":3140},{"from":"2021-12-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":5439},{"from":"2021-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":11850}],"starsCount":0},"github":{"forkOf":"davglass/zipcodes","starsCount":1,"forksCount":0,"subscribersCount":1,"issues":{"count":2,"openCount":0,"distribution":{"3600":2,"10800":0,"32400":0,"97200":0,"291600":0,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":0,"212576400":0},"isDisabled":true},"contributors":[{"username":"charanrajtc","commitsCount":1},{"username":"sergei202","commitsCount":1},{"username":"parisholley","commitsCount":2},{"username":"westy92","commitsCount":4},{"username":"CyberCyclone","commitsCount":1},{"username":"davglass","commitsCount":36},{"username":"jdforsythe","commitsCount":1},{"username":"dobesv","commitsCount":1},{"username":"oprogramador","commitsCount":1}],"commits":[{"from":"2022-06-17T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2022-05-25T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2022-03-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2021-12-26T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0},{"from":"2021-06-24T00:00:00.000Z","to":"2022-06-24T00:00:00.000Z","count":0}]},"source":{"files":{"readmeSize":3995,"testsSize":5772},"badges":[{"urls":{"original":"https://travis-ci.org/davglass/zipcodes.svg?branch=master","service":"https://api.travis-ci.org/davglass/zipcodes.svg?branch=master","shields":"https://img.shields.io/travis/davglass/zipcodes/master.svg","content":"https://img.shields.io/travis/davglass/zipcodes/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}}]}},"evaluation":{"quality":{"carefulness":0.71,"tests":0.6,"health":1,"branding":0.15},"popularity":{"communityInterest":11,"downloadsCount":1046.6666666666667,"downloadsAcceleration":-1.6453767123287681,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9,"issuesDistribution":0.9}},"score":{"final":0.6371334419680114,"detail":{"quality":0.8943058510778529,"popularity":0.05395255645563294,"maintenance":0.9998808339576686}}}