From 921e725ab92f3df188cf2c97ab762fa22d38187f Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Mon, 27 Mar 2023 08:46:04 +1100 Subject: [PATCH] Update README --- src/drivers/npm/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/drivers/npm/README.md b/src/drivers/npm/README.md index c8b739200..f856e4b9d 100644 --- a/src/drivers/npm/README.md +++ b/src/drivers/npm/README.md @@ -123,10 +123,13 @@ const wappalyzer = new Wappalyzer() await wappalyzer.init() const results = await Promise.all( - urls.map(async (url) => ({ - url, - results: await wappalyzer.open(url).analyze() - })) + urls.map(async (url) => { + const site = await wappalyzer.open(url) + + const results = await site.analyze() + + return { url, results } + }) ) console.log(JSON.stringify(results, null, 2))