Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ideal-postcodes/uk-clear-addressing-bundled

UK Clear Addressing packaged as a drop-in script
https://github.com/ideal-postcodes/uk-clear-addressing-bundled

Last synced: 10 days ago
JSON representation

UK Clear Addressing packaged as a drop-in script

Awesome Lists containing this project

README

        


UK Clear Addressing Bundled

> JavaScript browser bundles for uk-clear-addressing

[![npm version](https://badge.fury.io/js/%40ideal-postcodes%2Fuk-clear-addressing-bundled.svg)](https://badge.fury.io/js/%40ideal-postcodes%2Fuk-clear-addressing-bundled)
[![jscdn](https://badgen.net/jsdelivr/v/npm/@ideal-postcodes/uk-clear-addressing-bundled)](https://cdn.jsdelivr.net/npm/@ideal-postcodes/uk-clear-addressing-bundled/dist/)
![Release](https://github.com/ideal-postcodes/uk-clear-addressing-bundled/workflows/Release/badge.svg)

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](#usage) on a page.

This package is a transpiled copy of [`uk-clear-addressing`](https://github.com/ideal-postcodes/uk-clear-addressing-bundled).

## Download

Latest and pinned versions of each bundle can be downloaded from [jsdelivr.com](https://www.jsdelivr.com).

### Latest Versions

- [umd.min.js@latest](https://cdn.jsdelivr.net/npm/@ideal-postcodes/uk-clear-addressing-bundled/dist/umd.min.js)
- [esm.min.js@latest](https://cdn.jsdelivr.net/npm/@ideal-postcodes/uk-clear-addressing-bundled/dist/esm.min.js)

## Documentation

### Usage

#### UMD

```html

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",
});

```

#### ES Module

```html

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",
});

```

## Licence

MIT