National Park of Minnesota

    get-state-iso2
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.4 • Public • Published

    Base Zipcode ISO3166-2

    ZipUtil to get the state in ISO3166-2 format based on Country & Zip code.

    Install

    npm i get-state-iso2 --save

    Usage

    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');
    

    License

    MIT

    Install

    npm i get-state-iso2

    DownloadsWeekly Downloads

    1

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    16.8 MB

    Total Files

    35

    Last publish

    Collaborators

    • harshsrv