@visulima/iso-locale 0.0.1 → 1.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Country data structure following ISO 3166-1
3
+ */
4
+ interface Country {
5
+ /** ISO 3166-1 alpha-2 code (2-letter) */
6
+ alpha2: string;
7
+ /** ISO 3166-1 alpha-3 code (3-letter) */
8
+ alpha3: string;
9
+ /** Country calling codes (phone prefixes) */
10
+ countryCallingCodes?: string[];
11
+ /** ISO 4217 currency codes used in this country */
12
+ currencies: string[];
13
+ /** Flag emoji */
14
+ emoji?: string;
15
+ /** International Olympic Committee code */
16
+ ioc?: string;
17
+ /** ISO 639 language codes */
18
+ languages: string[];
19
+ /** English name of the country */
20
+ name: string;
21
+ /** ISO 3166-1 numeric code (3-digit string) */
22
+ numeric?: string;
23
+ /** ISO status: 'assigned', 'reserved', 'deleted', etc. */
24
+ status?: string;
25
+ }
26
+ /**
27
+ * Currency data structure following ISO 4217
28
+ */
29
+ interface Currency {
30
+ /** ISO 4217 alphabetic code (3-letter) */
31
+ code: string;
32
+ /** Number of decimal digits (minor units) */
33
+ decimals: number;
34
+ /** Full currency name */
35
+ name: string;
36
+ /** ISO 4217 numeric code (3-digit string) */
37
+ number: string;
38
+ /** Currency symbol */
39
+ symbol?: string;
40
+ }
41
+ /**
42
+ * Currency symbol mapping entry
43
+ */
44
+ interface CurrencySymbolEntry {
45
+ code: string;
46
+ name: string;
47
+ number: string;
48
+ symbol: string;
49
+ }
50
+ /**
51
+ * Region data structure following UN geoscheme
52
+ */
53
+ interface Region {
54
+ /** Continental region (e.g., "Africa", "Americas", "Asia", "Europe", "Oceania", "Antarctica") */
55
+ continent: string;
56
+ /** Intermediary region (e.g., "Sub-Saharan Africa", "Latin America and the Caribbean", "North America") */
57
+ intermediary?: string;
58
+ /** Geographical subregion (e.g., "Northern Africa", "Western Europe", "Eastern Asia") */
59
+ subregion: string;
60
+ }
61
+ export { Country, Currency, CurrencySymbolEntry, Region };
package/dist/types.js ADDED
File without changes
package/package.json CHANGED
@@ -1,10 +1,115 @@
1
1
  {
2
2
  "name": "@visulima/iso-locale",
3
- "version": "0.0.1",
4
- "description": "OIDC trusted publishing setup package for @visulima/iso-locale",
3
+ "version": "1.0.0-alpha.11",
4
+ "description": "ISO data for countries, currencies, regions, timezones, and BCP 47 locale support.",
5
5
  "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
10
- }
6
+ "alpha-2",
7
+ "alpha-3",
8
+ "bcp-47",
9
+ "bcp47",
10
+ "calling-code",
11
+ "continent",
12
+ "continents",
13
+ "countries",
14
+ "country",
15
+ "country-codes",
16
+ "currencies",
17
+ "currency",
18
+ "currency-codes",
19
+ "emoji",
20
+ "flag",
21
+ "flag-emoji",
22
+ "geoscheme",
23
+ "i18n",
24
+ "iana",
25
+ "iana-timezone",
26
+ "internationalization",
27
+ "iso",
28
+ "iso-3166",
29
+ "iso-3166-1",
30
+ "iso-4217",
31
+ "iso-639",
32
+ "iso-639-1",
33
+ "iso-639-3",
34
+ "language-tag",
35
+ "language-tags",
36
+ "locale",
37
+ "locales",
38
+ "numeric-code",
39
+ "phone-code",
40
+ "regions",
41
+ "subregion",
42
+ "subregions",
43
+ "timezone",
44
+ "timezones",
45
+ "un-geoscheme",
46
+ "visulima"
47
+ ],
48
+ "homepage": "https://visulima.com/packages/iso-locale",
49
+ "bugs": "https://github.com/visulima/visulima/issues",
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "git+https://github.com/visulima/visulima.git",
53
+ "directory": "packages/data-manipulation/iso-locale"
54
+ },
55
+ "funding": [
56
+ {
57
+ "type": "github",
58
+ "url": "https://github.com/sponsors/prisis"
59
+ },
60
+ {
61
+ "type": "consulting",
62
+ "url": "https://anolilab.com/support"
63
+ }
64
+ ],
65
+ "license": "MIT",
66
+ "author": {
67
+ "name": "Daniel Bannert",
68
+ "email": "d.bannert@anolilab.de"
69
+ },
70
+ "sideEffects": false,
71
+ "type": "module",
72
+ "exports": {
73
+ ".": {
74
+ "types": "./dist/index.d.ts",
75
+ "default": "./dist/index.js"
76
+ },
77
+ "./countries": {
78
+ "types": "./dist/countries.d.ts",
79
+ "default": "./dist/countries.js"
80
+ },
81
+ "./currencies": {
82
+ "types": "./dist/currencies.d.ts",
83
+ "default": "./dist/currencies.js"
84
+ },
85
+ "./locale": {
86
+ "types": "./dist/locale.d.ts",
87
+ "default": "./dist/locale.js"
88
+ },
89
+ "./regions": {
90
+ "types": "./dist/regions.d.ts",
91
+ "default": "./dist/regions.js"
92
+ },
93
+ "./timezones": {
94
+ "types": "./dist/timezones.d.ts",
95
+ "default": "./dist/timezones.js"
96
+ },
97
+ "./types": {
98
+ "types": "./dist/types.d.ts",
99
+ "default": "./dist/types.js"
100
+ },
101
+ "./package.json": "./package.json"
102
+ },
103
+ "files": [
104
+ "dist",
105
+ "README.md",
106
+ "CHANGELOG.md"
107
+ ],
108
+ "engines": {
109
+ "node": "^22.14.0 || >=24.10.0"
110
+ },
111
+ "publishConfig": {
112
+ "access": "public",
113
+ "provenance": true
114
+ }
115
+ }