@fragaria/address-formatter
Advanced tools
Comparing version 4.0.2 to 5.0.0
{ | ||
"name": "@fragaria/address-formatter", | ||
"version": "4.0.2", | ||
"version": "5.0.0", | ||
"description": "Universal international address formatting in Javascript", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/address-formatter.js", |
@@ -33,3 +33,3 @@ # JS Address formatter | ||
// import addressFormatter from '@fragaria/address-formatter'; | ||
const { addressFormatter } = require('@fragaria/address-formatter'); | ||
const addressFormatter = require('@fragaria/address-formatter'); | ||
@@ -139,5 +139,5 @@ // Basic examples | ||
```html | ||
<script type="text/javascript" src="https://unpkg.com/@fragaria/address-formatter@4.0.1"></script> | ||
<script type="text/javascript" src="https://unpkg.com/@fragaria/address-formatter@5.0.0"></script> | ||
<script type="text/javascript"> | ||
const formatted = window.addressFormatter.addressFormatter.format({ | ||
const formatted = window.addressFormatter.format({ | ||
"houseNumber": 301, | ||
@@ -144,0 +144,0 @@ "road": "Hamilton Avenue", |
import * as internal from './internal.js'; | ||
import * as countryNames from './templates/country-names.json'; | ||
export const addressFormatter = { | ||
const addressFormatter = { | ||
format: (input, options = { | ||
@@ -33,1 +33,2 @@ abbreviate: false, | ||
}; | ||
export default addressFormatter; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1099819