diff --git a/README.md b/README.md index c8030ed..7fe8b7a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# domian-finder +# domain-finder -[domain-finder](https://github.com/mohammadyaser/domian-finder) is used to find, scan and collect available and unavailable domains; +[domain-finder](https://github.com/mohammadyaser/domain-finder) is used to find, scan and collect available and unavailable domains; If you spend more time for choosing the domain name, with this module you can quickly find a suitable name for own @@ -31,9 +31,9 @@ create a .txt file based on time, that all available and unavailable domains are APPLE: Available domains: -╔═══════════════╤═════════════════╤═════════════════╤═══════════════╤════════════════╤═════════════════╤═════════════════╗ -║ apple.com │ appledesai.com │ applehashem.com │ applesaid.net │ applemalik.net │ appleabbas.net │ appledesai.net ║ -╚═══════════════╧═════════════════╧═════════════════╧═══════════════╧════════════════╧═════════════════╧═════════════════╝ +╔═════════════════╤═════════════════╤═══════════════╤════════════════╤═════════════════╤═════════════════╗ +║ appledesai.com │ applehashem.com │ applesaid.net │ applemalik.net │ appleabbas.net │ appledesai.net ║ +╚═════════════════╧═════════════════╧═══════════════╧════════════════╧═════════════════╧═════════════════╝ Unavailable domains: ╔═══════════╤═══════════╗ ║ apple.com │ apple.net ║ @@ -43,7 +43,7 @@ Unavailable domains: ## Second Example ## -if you want for check the domains of a series of specefic words, just try like this +If you want to check the domains of a series of specefic words, just try like this ```javascript const domainFinder = require('domain-finder'); @@ -134,7 +134,7 @@ domainFinder({ #### result: #### -![alt text](https://github.com/mohammadyaser/domian-finder/blob/master/assets/result.png) +![alt text](https://github.com/mohammadyaser/domain-finder/blob/master/assets/result.png) diff --git a/business-logic.js b/business-logic.js index bc2f1d3..762ebb6 100644 --- a/business-logic.js +++ b/business-logic.js @@ -25,9 +25,9 @@ class BusinessLogic { let result = [] while (reversedParsedDomain.length > 0) domainsChunk.push(reversedParsedDomain.splice(0, size)); - async.eachOfSeries(domainsChunk, async (domians, index) => { + async.eachOfSeries(domainsChunk, async (domains, index) => { try { - let urls = await this.getUrlsFromGoogle({ domains: domians, prefix, postfix, statusPrefix, statusPostfix, counter: index, size }) + let urls = await this.getUrlsFromGoogle({ domains: domains, prefix, postfix, statusPrefix, statusPostfix, counter: index, size }) let allParsedUrls = await this.saveUrls(urls, tlds, consoleLog); console.log(`Please check ${allParsedUrls.fileName}.txt`); result.push(allParsedUrls) @@ -133,8 +133,8 @@ class BusinessLogic { let fileName = +new Date() let validInvalidUrls = [] - for (let domians of allUrls) { - let { domainName, urls } = domians + for (let domains of allUrls) { + let { domainName, urls } = domains let { validResult, invalidResult } = this.extractValidAndInvalidUrls({ urls, tlds }) if (consoleLog) diff --git a/package.json b/package.json index eca6007..341ba8a 100644 --- a/package.json +++ b/package.json @@ -8,23 +8,28 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/myas92/domian-finder.git" + "url": "git+https://github.com/myas92/domain-finder.git" + }, "keywords": [ "domain", "finddomain", "checkdomain", - "domianfinder", + "domainfinder", "domain-finder", + "subdomain", + "search-domain", + "find-domain", "host", "domain-scrapper" ], "author": "Yaser", "license": "ISC", "bugs": { - "url": "https://github.com/myas92/domian-finder/issues" + + "url": "https://github.com/myas92/domain-finder/issues" }, - "homepage": "https://github.com/mohammadyaser/domian-finder#readme", + "homepage": "https://github.com/myas92/domain-finder#readme", "dependencies": { "async": "^3.2.1", "axios": "^0.21.4",