From 9952052af749a7aec3be6c837f67ae991f254772 Mon Sep 17 00:00:00 2001 From: Thomas Orlita Date: Sun, 14 Jun 2020 12:30:36 +0200 Subject: [PATCH] Update npm code sample --- src/drivers/npm/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/npm/README.md b/src/drivers/npm/README.md index 5eda7d416..3d287495a 100644 --- a/src/drivers/npm/README.md +++ b/src/drivers/npm/README.md @@ -64,7 +64,7 @@ const options = { }; ;(async function() { - const wappalyzer = await new Wappalyzer() + const wappalyzer = await new Wappalyzer(options) try { await wappalyzer.init() @@ -74,7 +74,7 @@ const options = { // Optionally capture and output errors site.on('error', console.error) - const results = site.analyze() + const results = await site.analyze() console.log(JSON.stringify(results, null, 2)) } catch (error) {