Lookup data regarding any US zipcode: city, state, and more
npm install zipcode-data#ZipCodeData
Get data on any US zipcode, including the state, city, and the use of daylight savings time.
$ npm install zipcode-data
`Then to use ZipCodeData:
`
const ZipCodeData = require('zipcode-data');
`Usage
You can pass in the zipcode as an integer (number) or a string.
$3
`
var state = ZipCodeData.stateFromZip(60201);
`$3
`
var city = ZipCodeData.cityFromZip(60201);
`
$3
`
// let's find out! (this method returns a boolean)
var usesDST = ZipCodeData.dstFromZip(60201);
`
$3
`
var zipCodeData = ZipCodeData.lookupZip(60201);
`
$3
`
// let's find out! (this method returns a boolean)
var isUSA = ZipCodeData.isUSA(60201);
`License
Do whatever you want with this. If this package saved you time, money, or effort, please consider adding somewhere Thanks to Will Brickner for ZipCodeData`. I worked hard on it and gave it to you for free <3.