{"analyzedAt":"2022-06-29T17:36:06.197Z","collected":{"metadata":{"name":"zips","scope":"unscoped","version":"1.1.2","description":"Light, fast, tree-based way to get cities by zipcode and location.","keywords":["zipcodes","zip","code","geo","zipcode","postal","code"],"date":"2017-02-13T22:13:06.410Z","author":{"name":"Chris Hallberg"},"publisher":{"username":"crhallberg","email":"crhallberg@gmail.com"},"maintainers":[{"username":"crhallberg","email":"crhallberg@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/crhallberg/zips.git"},"links":{"npm":"https://www.npmjs.com/package/zips","homepage":"https://github.com/crhallberg/zips#readme","repository":"https://github.com/crhallberg/zips","bugs":"https://github.com/crhallberg/zips/issues"},"license":"MIT","releases":[{"from":"2022-05-30T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-03-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2021-12-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2021-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2020-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0}],"hasTestScript":true,"readme":"# zips [![Travis status](https://travis-ci.org/crhallberg/zips.svg?branch=master)](https://travis-ci.org/crhallberg/zips)\nLight, fast, tree-based way to get cities by zipcode and location.\n\n```bash\nnpm install zips\n```\n\n```javascript\nconst zips = require('zips');\n```\n\nU.S. postal codes only. For now.\n\n### zips.getByZipCode(zipcode: string)\n\nIf zipcode is found, returns a **place object** with zipcode, city, state, lat, long. Returns `null` if zipcode not found.\n\n### zips.getByLocation(lat: float, long: float)\n\nReturns the closest place object to the specified coordinates.\n\n### Under the hood\n\n**zips** doesn't load its data until the first time a function is called. The longest loading time I've seen is 100ms. After that, sub-millisecond returns can be expected.\n\n### Why?\n\nI saw a lot of zip database modules on npm, but I was displeased with three aspects\n - Old data (zips uses 2010 US Census data from [geonames.org](http://www.geonames.org/), the most up-to-date I could find).\n - Huge, raw data (zips' data is pre-processed so it can just load and go).\n - List searching (zips organizes its data into trees instead of going down a list until a match is found or a large hash table).\n\nI hope you're happy too."},"npm":{"downloads":[{"from":"2022-06-28T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":33},{"from":"2022-06-22T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":111},{"from":"2022-05-30T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":342},{"from":"2022-03-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":1145},{"from":"2021-12-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":2509},{"from":"2021-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":7006}],"starsCount":0},"github":{"homepage":"https://www.npmjs.com/package/zips","starsCount":4,"forksCount":4,"subscribersCount":1,"issues":{"count":7,"openCount":2,"distribution":{"3600":0,"10800":2,"32400":0,"97200":1,"291600":2,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":1,"212576400":1},"isDisabled":false},"contributors":[{"username":"prettierci-commits","commitsCount":2}],"commits":[{"from":"2022-06-22T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-05-30T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2022-03-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2021-12-31T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0},{"from":"2021-06-29T00:00:00.000Z","to":"2022-06-29T00:00:00.000Z","count":0}],"statuses":[{"context":"continuous-integration/travis-ci/push","state":"success"}]},"source":{"files":{"readmeSize":1224,"testsSize":3084},"badges":[{"urls":{"original":"https://travis-ci.org/crhallberg/zips.svg?branch=master","service":"https://api.travis-ci.org/crhallberg/zips.svg?branch=master","shields":"https://img.shields.io/travis/crhallberg/zips/master.svg","content":"https://img.shields.io/travis/crhallberg/zips/master.json"},"info":{"service":"travis","type":"build","modifiers":{"branch":"master"}}}]}},"evaluation":{"quality":{"carefulness":0.71,"tests":0.85,"health":1,"branding":0.15},"popularity":{"communityInterest":10,"downloadsCount":381.6666666666667,"downloadsAcceleration":-3.262538051750381,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9,"issuesDistribution":0.9}},"score":{"final":0.6452166724448661,"detail":{"quality":0.9284155042037826,"popularity":0.04781065513870686,"maintenance":0.9998808339576686}}}