Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including international-postal-address with all npm packages installed. Try it out:

var internationalPostalAddress = require("international-postal-address")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

international-postal-address v0.1.1

Formats postal addresses for a specified region

international-address

Formatter for international addresses

Based on the following preferred international address formats document.

Address Info Properties

PropertyDescription
HonorificTBD description
FirstNameTBD description
SecondNameTBD description
LastNameTBD description
CompanyNameTBD description
Address1TBD description
Address2TBD description
CityTBD description
StateTBD description
PostalCodeTBD description
CountryTBD description
ProvinceTBD description
TitleTBD description
CountryCodeTBD description
AddressTBD description
CountryAbbreviationTBD description
PrefectureTBD description
DoTBD description
SiTBD description
DongTBD description
GuTBD description
FirstLastNameTBD description
SecondLastNameTBD description
JobTitleTBD description
RepublicTBD description
RegionTBD description
JobTBD description

Requirements

  • enables multiple matching criteria ** country code (https://en.wikipedia.org/wiki/ISO_3166-1) ** country name
  • Simple for third party to extend ** Extensions include adding new country->formatter bindings, new formatters, and replacing existing formatters and bindings ** example binding replacement should be one that comprehends the http://schema.org/PostalAddress vocabulary
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free