Get the state in ISO3166-2 format based on Country & Zipcode
npm install get-state-iso2ZipUtil to get the state in ISO3166-2 format based on Country & Zip code.
``bash`
npm i get-state-iso2 --save
Import
``
const ZipUtil = require('get-state-iso2').default
Initialize ZipUtil by passing configuration object in load function
``
ZipUtil.init({supportedCountries: ['IN'], supportedCountryOnly: true});
To get the state
```
await ZipUtil.getInstance().getState('NL', '1016 DC');
await ZipUtil.getInstance().getState('IN', '110016');