JavaScript browser bundles for uk-clear-addressing
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
.
Latest and pinned versions of each bundle can be downloaded from jsdelivr.com.
<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>
<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>
MIT