Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
postal-address-field-names
Advanced tools
Readme
This module exports address field names for every country, in English. This is useful as many countries have subtle differences in field names (e.g. Postcode in the UK vs ZIP code in the US). It is based on the Oasis XAL standard for addresses.
The output is c.33kb (minified) with no dependencies, and it will work on both node & the browser. It also includes Typescript types for your convenience.
[
//...
{
name: "United Kingdom",
iso: "GB",
fields: {
addressLine1: "Address 1",
addressLine2: "Address 2",
locality: "Town/city",
administrativeArea: "County",
postalCode: "Postcode",
},
},
{
name: "United States",
iso: "US",
fields: {
addressLine1: "Address 1",
addressLine2: "Address 2",
locality: "City",
administrativeArea: "State",
postalCode: "ZIP code",
},
},
//...
];
Note that several fields are excluded from this array to save space, as they exist (and are named the same) for all countries. These are:
import countryAddressDetails, {
CountryCodes,
} from "postal-address-field-names";
function getFieldNames(countryISO: CountryCodes) {
const countryISO = "GB";
const country = countryAddressDetails.find(
(country) => country.iso === countryISO
);
return country.fields;
}
The module includes a few useful Typescript helpers:
Array<CountryAddressDetails>
)This module is contributed by the team at Skyhook
FAQs
Internationalisation library for postal address field names, using the Oasis XAL standard
The npm package postal-address-field-names receives a total of 219 weekly downloads. As such, postal-address-field-names popularity was classified as not popular.
We found that postal-address-field-names demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.