country-codes-library 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/README.md +59 -59
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,60 +1,60 @@
1
- # Country Codes Library
2
-
3
- The Country Code Library provides a collection of two-letter and three-letter country codes according to the ISO 3166-1 standard,
4
- as well as it provides USA, China and Canada Province codes (State codes / adminstrative division codes).
5
- In addition, it includes telephone calling codes, currency codes, currency Symbols for countries across the world.
6
-
7
- ## Installation
8
-
9
- To install the Country Codes Library:
10
-
11
- ```bash
12
- npm install country-codes-lib
13
- ```
14
-
15
- ## Usage
16
-
17
- After installing the Country Codes Library, you can use it in your project to retrieve two-letter, three-letter country codes, telephone calling codes, state/province/administrative division codes, and currency codes. Here are some examples:
18
-
19
- ## JavaScript Example
20
-
21
- ```js
22
- const { TwoLetterISORegionCode, ThreeLetterISORegionCode, CountryCallingCodes, USAStateCode, CanadaProvinceCode, ChinaProvinceCode, CountryCurrencyCodes, CountryCurrencySymbols } = require('country-codes-library');
23
-
24
- console.log(`USA's Two Letter Country Code is ${TwoLetterISORegionCode.UnitedStates}`);
25
- console.log(`India's Three Letter Country Code is ${ThreeLetterISORegionCode.India}`);
26
- console.log(`Germany's Telephone Code is ${CountryCallingCodes.Germany}`);
27
- console.log(`Alabama's Two Letter State Code is ${USAStateCode.Alabama}`);
28
- console.log(`Ontario's Two Letter Province Code is ${CanadaProvinceCode.Ontario}`);
29
- console.log(`Beijing's Two Letter Province Code is ${ChinaProvinceCode.Beijing}`);
30
- console.log(`Bangladesh's Currency Code is ${CountryCurrencyCodes.Bangladesh}`);
31
- console.log(`Japan's Currency Symbol is ${CountryCurrencySymbols.Japan}`);
32
- ```
33
-
34
- ## TypeScript Example
35
-
36
- ```ts
37
- import { TwoLetterISORegionCode, ThreeLetterISORegionCode, CountryCallingCodes, USAStateCode, CanadaProvinceCode, ChinaProvinceCode, CountryCurrencyCodes, CountryCurrencySymbols } from 'country-codes-library';
38
-
39
- console.log(`USA's Two Letter Country Code is ${TwoLetterISORegionCode.UnitedStates}`);
40
- console.log(`India's Three Letter Country Code is ${ThreeLetterISORegionCode.India}`);
41
- console.log(`Germany's Telephone Code is ${CountryCallingCodes.Germany}`);
42
- console.log(`Alabama's Two Letter State Code is ${USAStateCode.Alabama}`);
43
- console.log(`Ontario's Two Letter Province Code is ${CanadaProvinceCode.Ontario}`);
44
- console.log(`Beijing's Two Letter Province Code is ${ChinaProvinceCode.Beijing}`);
45
- console.log(`Bangladesh's Currency Code is ${CountryCurrencyCodes.Bangladesh}`);
46
- console.log(`Japan's Currency Symbol is ${CountryCurrencySymbols.Japan}`);
47
-
48
- ```
49
-
50
- ## Output
51
- ```console
52
- USA's Two Letter Country Code is US
53
- India's Three Letter Country Code is IND
54
- Germany's Telephone Code is +49
55
- Alabama's Two Letter State Code is AL
56
- Ontario's Two Letter Province Code is ON
57
- Beijing's Two Letter Province Code is BJ
58
- Bangladesh's Currency Code is BDT
59
- Japan's Currency Symbol is ¥
1
+ # Country Codes Library
2
+
3
+ The Country Code Library provides a collection of two-letter and three-letter country codes according to the ISO 3166-1 standard,
4
+ as well as it provides USA, China and Canada Province codes (State codes / adminstrative division codes).
5
+ In addition, it includes telephone calling codes, currency codes, currency Symbols for countries across the world.
6
+
7
+ ## Installation
8
+
9
+ To install the Country Codes Library:
10
+
11
+ ```bash
12
+ npm install country-codes-lib
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ After installing the Country Codes Library, you can use it in your project to retrieve two-letter, three-letter country codes, telephone calling codes, state/province/administrative division codes, and currency codes. Here are some examples:
18
+
19
+ ## JavaScript Example
20
+
21
+ ```js
22
+ const { TwoLetterISORegionCode, ThreeLetterISORegionCode, CountryCallingCodes, USAStateCode, CanadaProvinceCode, ChinaProvinceCode, CountryCurrencyCodes, CountryCurrencySymbols } = require('country-codes-library');
23
+
24
+ console.log(`USA's Two Letter Country Code is ${TwoLetterISORegionCode.UnitedStates}`);
25
+ console.log(`India's Three Letter Country Code is ${ThreeLetterISORegionCode.India}`);
26
+ console.log(`Germany's Telephone Code is ${CountryCallingCodes.Germany}`);
27
+ console.log(`Alabama's Two Letter State Code is ${USAStateCode.Alabama}`);
28
+ console.log(`Ontario's Two Letter Province Code is ${CanadaProvinceCode.Ontario}`);
29
+ console.log(`Beijing's Two Letter Province Code is ${ChinaProvinceCode.Beijing}`);
30
+ console.log(`Bangladesh's Currency Code is ${CountryCurrencyCodes.Bangladesh}`);
31
+ console.log(`Japan's Currency Symbol is ${CountryCurrencySymbols.Japan}`);
32
+ ```
33
+
34
+ ## TypeScript Example
35
+
36
+ ```ts
37
+ import { TwoLetterISORegionCode, ThreeLetterISORegionCode, CountryCallingCodes, USAStateCode, CanadaProvinceCode, ChinaProvinceCode, CountryCurrencyCodes, CountryCurrencySymbols } from 'country-codes-library';
38
+
39
+ console.log(`USA's Two Letter Country Code is ${TwoLetterISORegionCode.UnitedStates}`);
40
+ console.log(`India's Three Letter Country Code is ${ThreeLetterISORegionCode.India}`);
41
+ console.log(`Germany's Telephone Code is ${CountryCallingCodes.Germany}`);
42
+ console.log(`Alabama's Two Letter State Code is ${USAStateCode.Alabama}`);
43
+ console.log(`Ontario's Two Letter Province Code is ${CanadaProvinceCode.Ontario}`);
44
+ console.log(`Beijing's Two Letter Province Code is ${ChinaProvinceCode.Beijing}`);
45
+ console.log(`Bangladesh's Currency Code is ${CountryCurrencyCodes.Bangladesh}`);
46
+ console.log(`Japan's Currency Symbol is ${CountryCurrencySymbols.Japan}`);
47
+
48
+ ```
49
+
50
+ ## Output
51
+ ```console
52
+ USA's Two Letter Country Code is US
53
+ India's Three Letter Country Code is IND
54
+ Germany's Telephone Code is +49
55
+ Alabama's Two Letter State Code is AL
56
+ Ontario's Two Letter Province Code is ON
57
+ Beijing's Two Letter Province Code is BJ
58
+ Bangladesh's Currency Code is BDT
59
+ Japan's Currency Symbol is ¥
60
60
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "country-codes-library",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "The Country Code Library provides a collection of two-letter and three-letter country codes according to the ISO 3166-1 standard, as well as it provides USA, China and Canada Province codes (State codes / adminstrative division codes). In addition, it includes telephone calling codes, currency codes, currency Symbols for countries across the world.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "url": "git+https://github.com/mohansenthil/countrycodes-node.git"
16
16
  },
17
17
  "author": "mohan raj senthilnathan",
18
- "license": "ISC",
18
+ "license": "MIT",
19
19
  "bugs": {
20
20
  "url": "https://github.com/mohansenthil/countrycodes-node/issues"
21
21
  },
@@ -51,4 +51,4 @@
51
51
  "currencycodes",
52
52
  "currencysymbols"
53
53
  ]
54
- }
54
+ }