provinces-ca
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    NPM Version CI Dependency Status Dev Dependency Status

    CA Provinces

    List of CA provinces and territories.

    Installation

    npm install provinces-ca --save

    Usage

    import provinces from 'provinces-ca';
     
    console.log(provinces);
    // => all provinces and territories
     
    const example1 = provinces.filter((x) => !x.territory);
    console.log(example1);
    // => provinces only
     
    const example2 = provinces.map((x) => x.abbreviation);
    console.log(example2);
    // => all provinces/territory abbreviations

    The default export from provinces-ca is an array of object with the following structure:

    Property Type Description Example
    name string Province name. Ontario
    abbreviation string Province abbreviation. ON
    territory boolean Indicates if the province is a territory. false

    Development

    npm install
    npm run build
    

    Install

    npm i provinces-ca

    DownloadsWeekly Downloads

    1,242

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • justinlettau