From add307eb20d6681c5a3c0e7732b55e93ddfc8f6c Mon Sep 17 00:00:00 2001 From: Doug Bird Date: Wed, 13 Jun 2018 00:27:30 -0700 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6867513..014182d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Additionally, for convenience, some native programming language formats have als ```js const tldEnum = require('tld-enum'); - tldEnum.list; //an array with every IANA TLD + console.log(tldEnum.list); //an array with every IANA TLD ``` The following example... From b75aaae0c487e8fad4c1580c93b199ceddbc5499 Mon Sep 17 00:00:00 2001 From: Doug Bird Date: Wed, 13 Jun 2018 01:02:24 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 014182d..bb4d704 100644 --- a/README.md +++ b/README.md @@ -192,10 +192,32 @@ $ bin/update-formats.sh ### TLD Update Utility Prerequisites * Node.js version 8.11 or higher. * (Optional) PHP command-line version 7.2 or higher, to re-generate the [PHP format files](#tld-list-formats). - * The *devDependencies* from [*package.json*](./package.json) must be fullfilled - ```sh - $ npm install tld-enum --dev - ``` + * The *devDependencies* from [*package.json*](./package.json) must be available. + + * If **tld-enum** has installed in an outside project using npm, then these must be installed manually, as in the following example: + + ```sh + npm install async-request --save-dev + npm install cheerio --save-dev + npm install commander --save-dev + npm install country-data --save-dev + npm install countryjs --save-dev + npm install csv-parse --save-dev + npm install csv-stringify --save-dev + npm install es6-promisify --save-dev + npm install fs --save-dev + npm install fs-extra --save-dev + npm install md5-file --save-dev + npm install pathinfo --save-dev + npm install request --save-dev + npm install tmp --save-dev + ``` + + * If **tld-enum** has installed in an outside project using npm, then the **TLD Update Utility** can be executed from the *node_module* to update the TLD format files without having to wait for an update to the [**tld-enum** npm package](https://www.npmjs.com/package/tld-enum), as in the following example: + + ```sh + node_modules/tld-enum/bin/update-formats.sh + ``` ### TLD Update Utility Usage ```txt