diff --git a/README.md b/README.md index bf8e812..868c3c7 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # TLD Enumerations Lists of every [IANA TLD](http://data.iana.org/TLD/tlds-alpha-by-domain.txt) in various formats. The lists may be continuously updated using the [included utility](#updating-the-tld-lists) that pulls the latest data from IANA. - * [CSV format](./tlds.csv) - * [All Formats](#tld-list-formats) - * [Updating the TLDs](#updating-the-tld-lists) + * [CSV Format](./tlds.csv) + * [All Format Files](#tld-list-formats) + * [Updating the Format Files](#updating-the-tld-format-files) * [Node Usage](#node-usage) * [PHP Usage](#php-usage) @@ -29,20 +29,20 @@ Additionally, for convenience, some native programming language formats have als ```js const tldEnum = require('tld-enum'); - tldEnum.tldList; //an array with every IANA TLD + tldEnum.list; //an array with every IANA TLD ``` The following example... ```js const tldEnum = require('tld-enum'); - console.log("There are " + tldEnum.tldList.length + " IANA TLDs"); + console.log("There are " + tldEnum.list.length + " IANA TLDs"); let tldCheck; tldCheck = "com"; console.log("Is '" + tldCheck + "' a real TLD?"); - if (tldEnum.tldList.indexOf(tldCheck.toLowerCase()) != -1) { + if (tldEnum.list.indexOf(tldCheck.toLowerCase()) != -1) { console.log(" yes"); } else { console.log(" no"); @@ -50,7 +50,7 @@ Additionally, for convenience, some native programming language formats have als tldCheck = "somethingWeird"; console.log("Is '" + tldCheck + "' a real TLD?"); - if (tldEnum.tldList.indexOf(tldCheck.toLowerCase()) != -1) { + if (tldEnum.list.indexOf(tldCheck.toLowerCase()) != -1) { console.log(" yes"); } else { console.log(" no"); @@ -59,7 +59,7 @@ Additionally, for convenience, some native programming language formats have als Should produce the following output... ```txt - There are 1573 IANA TLDs + There are 1577 IANA TLDs Is 'com' a real TLD? yes Is 'somethingWeird' a real TLD? @@ -72,26 +72,23 @@ Additionally, for convenience, some native programming language formats have als $ composer require katmore/tld-enum ``` - * access the list by using the `\TldEnum\TldEnum::TLD_ENUM` class constant array + * access the list by using the `\TldList::TLD_LIST` class constant array ```php