From 358fbcf9bb8bd9edbaf6775428dc854fbe58e65d Mon Sep 17 00:00:00 2001 From: Pasindu De Silva Date: Sun, 4 Jan 2015 18:30:04 +0530 Subject: [PATCH] added wappalyzer npm module --- .gitignore | 2 + drivers/npm/.gitignore | 1 + drivers/npm/README.md | 96 ++++++++++++++++++++++++++++++++++++++++ drivers/npm/check.js | 11 +++++ drivers/npm/index.js | 83 ++++++++++++++++++++++++++++++++++ drivers/npm/package.json | 28 ++++++++++++ drivers/npm/test/test.js | 27 +++++++++++ links.cmd | 7 +++ links.sh | 4 ++ 9 files changed, 259 insertions(+) create mode 100644 drivers/npm/.gitignore create mode 100644 drivers/npm/README.md create mode 100644 drivers/npm/check.js create mode 100644 drivers/npm/index.js create mode 100644 drivers/npm/package.json create mode 100644 drivers/npm/test/test.js diff --git a/.gitignore b/.gitignore index 4e82153d7..fcd878f72 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ drivers/**/icons/*.png !.gitkeep node_modules/* + +drivers/npm/node_modules/ \ No newline at end of file diff --git a/drivers/npm/.gitignore b/drivers/npm/.gitignore new file mode 100644 index 000000000..40b878db5 --- /dev/null +++ b/drivers/npm/.gitignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/drivers/npm/README.md b/drivers/npm/README.md new file mode 100644 index 000000000..8aa96b834 --- /dev/null +++ b/drivers/npm/README.md @@ -0,0 +1,96 @@ +# Wappalyzer + +This is npm module for wappalyzer + + npm install wappalyzer + + + var wappalyzer = require("wappalyzer"); + + + var options={ + url : "http://codelanka.github.io/Presentation-Engines", + hostname:"codelanka.github.io", + debug:false + } + + wappalyzer.detectFromUrl(options,function (err,apps,appInfo) { + console.log(err,apps,appInfo); + }) + + +####Output + + + null [ 'AngularJS', + 'Font Awesome', + 'Google Font API', + 'jQuery', + 'Twitter Bootstrap' ] { AngularJS: + { app: 'AngularJS', + confidence: + { 'script //([\\d.]+(\\-?rc[.\\d]*)*)/angular(\\.min)?\\.js/i': 100, + 'script /angular.*\\.js/i': 100 }, + confidenceTotal: 100, + detected: true, + excludes: [], + version: '1.3.5', + versions: [ '1.3.5' ] }, + 'Font Awesome': + { app: 'Font Awesome', + confidence: { 'html /]* href=[^>]+font-awesome(?:\\.min)?\\.css/i': 100 }, + confidenceTotal: 100, + detected: true, + excludes: [], + version: '', + versions: [] }, + 'Google Font API': + { app: 'Google Font API', + confidence: { 'html /]* href=[^>]+fonts\\.(?:googleapis|google)\\.com/i': 100 }, + confidenceTotal: 100, + detected: true, + excludes: [], + version: '', + versions: [] }, + jQuery: + { app: 'jQuery', + confidence: { 'script /jquery.*\\.js/i': 100 }, + confidenceTotal: 100, + detected: true, + excludes: [], + version: '', + versions: [] }, + 'Twitter Bootstrap': + { app: 'Twitter Bootstrap', + confidence: + { 'script /(?:twitter\\.github\\.com/bootstrap|bootstrap(?:\\.js|\\.min\\.js))/i': 100, + 'html /