Skip to content

UK Clear Addressing packaged as a drop-in script

Notifications You must be signed in to change notification settings

ideal-postcodes/uk-clear-addressing-bundled

Repository files navigation

UK Clear Addressing Bundled

JavaScript browser bundles for uk-clear-addressing

npm version jscdn Release

This package exports polyfilled, minified copies of uk-clear-addressing in various formats available on npm and various JavaScript CDNs. It can be readily dropped in on a page.

This package is a transpiled copy of uk-clear-addressing.

Download

Latest and pinned versions of each bundle can be downloaded from jsdelivr.com.

Latest Versions

Documentation

Usage

UMD

<script src="https://cdn.jsdelivr.net/npm/@ideal-postcodes/uk-clear-addressing-bundled@1"></script>

<script>
  var Address = IdealPostcodes.default.Address;
  let address = new Address({
    postcode: "WS11 5SB",
    post_town: "CANNOCK",
    thoroughfare: "Pye Green Road",
    building_name: "Flower House 189A",
    organisation_name: "S D Alcott Florists",
  });
</script>

ES Module

<script
  type="module"
  src="https://cdn.jsdelivr.net/npm/@ideal-postcodes/uk-clear-addressing-bundled@1/dist/esm.min.js"
></script>

<script type="module">
  import IdealPostcodes from "https://cdn.jsdelivr.net/npm/@ideal-postcodes/uk-clear-addressing-bundled/dist/esm.min.js";
  let address = new IdealPostcodes.Address({
    postcode: "WS11 5SB",
    post_town: "CANNOCK",
    thoroughfare: "Pye Green Road",
    building_name: "Flower House 189A",
    organisation_name: "S D Alcott Florists",
  });
</script>

Licence

MIT