From 16159bb6cb37d0ef426a442aa27d112dd273a545 Mon Sep 17 00:00:00 2001 From: Doug Bird Date: Wed, 13 Dec 2017 12:29:47 -0800 Subject: [PATCH] refactor / simplify --- {src => bin}/helpers/generate-js-tld-enum.js | 0 {src => bin}/helpers/generate-json-tld-enum.js | 0 {src => bin}/helpers/generate-php-tld-enum.php | 0 bin/helpers/generate-tlds-csv.js | 5 +++++ bin/{update-tlds => update-formats} | 0 src/.gitkeep | 0 6 files changed, 5 insertions(+) rename {src => bin}/helpers/generate-js-tld-enum.js (100%) rename {src => bin}/helpers/generate-json-tld-enum.js (100%) rename {src => bin}/helpers/generate-php-tld-enum.php (100%) create mode 100644 bin/helpers/generate-tlds-csv.js rename bin/{update-tlds => update-formats} (100%) delete mode 100644 src/.gitkeep diff --git a/src/helpers/generate-js-tld-enum.js b/bin/helpers/generate-js-tld-enum.js similarity index 100% rename from src/helpers/generate-js-tld-enum.js rename to bin/helpers/generate-js-tld-enum.js diff --git a/src/helpers/generate-json-tld-enum.js b/bin/helpers/generate-json-tld-enum.js similarity index 100% rename from src/helpers/generate-json-tld-enum.js rename to bin/helpers/generate-json-tld-enum.js diff --git a/src/helpers/generate-php-tld-enum.php b/bin/helpers/generate-php-tld-enum.php similarity index 100% rename from src/helpers/generate-php-tld-enum.php rename to bin/helpers/generate-php-tld-enum.php diff --git a/bin/helpers/generate-tlds-csv.js b/bin/helpers/generate-tlds-csv.js new file mode 100644 index 0000000..4f385af --- /dev/null +++ b/bin/helpers/generate-tlds-csv.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node + +console.log("downloads the 'http://data.iana.org/TLD/tlds-alpha-by-domain.txt' file and cross references it with https://www.iana.org/domains/root/db to re-generate the 'tlds.csv' csv file"); +console.log("---this script is currently a 'to-do' placeholder!---"); +console.error("terminating... the development for the 'JSON' format generator has not yet been completed"); \ No newline at end of file diff --git a/bin/update-tlds b/bin/update-formats similarity index 100% rename from bin/update-tlds rename to bin/update-formats diff --git a/src/.gitkeep b/src/.gitkeep deleted file mode 100644 index e69de29..0000000