From 365bc3b47d68e700ecb2fb68a9104cb9288bb1e1 Mon Sep 17 00:00:00 2001 From: Martin Maillard Date: Fri, 8 Jun 2018 04:57:49 +0200 Subject: [PATCH] Add "wappalyzer" command (#2329) Wappalyzer can be executed as "wappalyzer" instead of "node index.js". --- src/drivers/npm/index.js | 1 + src/drivers/npm/package.json | 3 +++ 2 files changed, 4 insertions(+) mode change 100644 => 100755 src/drivers/npm/index.js diff --git a/src/drivers/npm/index.js b/src/drivers/npm/index.js old mode 100644 new mode 100755 index 77ff1c160..bc29ba604 --- a/src/drivers/npm/index.js +++ b/src/drivers/npm/index.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node 'use strict'; const Wappalyzer = require('./driver'); diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index 411f1d33c..2b64ae19a 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -16,6 +16,9 @@ "driver.js", "wappalyzer.js" ], + "bin": { + "wappalyzer": "./index.js" + }, "dependencies": { "request": "^2.85.0", "zombie": "^5.0.8"