Merge pull request #3178 from ThomasOrlita/patch-1

Update npm code sample
main
Elbert Alias 4 years ago committed by GitHub
commit b0e0b6b12c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

Loading…
Cancel
Save