Updated the readme with new method and new sample along with formatting update to match NPMJS.org

main
Johann du Toit 10 years ago
parent 6ebbc9f6e7
commit dc9ea3164d

@ -1,102 +1,139 @@
# Wappalyzer # Wappalyzer
This is npm module for wappalyzer ## Install
npm install wappalyzer Install wappalyzer from NPM with:
```bash
var wappalyzer = require("wappalyzer"); npm install wappalyzer
```
## Quickstart
var options={
url : "http://codelanka.github.io/Presentation-Engines", ```javascript
hostname:"codelanka.github.io", // load in the lib
debug:false var wappalyzer = require("wappalyzer");
}
// set our options
// detect from the url directly, library will make a request var options={
wappalyzer.detectFromUrl(options,function (err,apps,appInfo) {
url : "http://codelanka.github.io/Presentation-Engines",
// output for the test hostname:"codelanka.github.io",
console.dir(apps); debug:false
console.dir(appInfo);
}
})
// detect from the url directly, library will make a request
var data = { wappalyzer.detectFromUrl(options,function (err,apps,appInfo) {
url: options.url, // output for the test
headers: { console.dir(apps);
console.dir(appInfo);
test: 1
})
},
html: '<p>HTML CONTENT OF PAGE HERE</p>' // sample data
var data = {
};
url: options.url,
// detect from content you have already headers: {
wappalyzer.detectFromHTML(options,function (err,apps,appInfo) {
test: 1
// output for the test
console.dir(apps); },
console.log(appInfo); html: '<p>HTML CONTENT OF PAGE HERE</p>'
}) };
// detect from content you have already
####Output wappalyzer.detectFromHTML(options,function (err,apps,appInfo) {
// output for the test
null [ 'AngularJS', console.dir(apps);
'Font Awesome', console.log(appInfo);
'Google Font API',
'jQuery', })
'Twitter Bootstrap' ] { AngularJS: ```
{ app: 'AngularJS', ### Output from QuickStart
confidence:
{ 'script //([\\d.]+(\\-?rc[.\\d]*)*)/angular(\\.min)?\\.js/i': 100, ```javascript
'script /angular.*\\.js/i': 100 },
confidenceTotal: 100, // Apps
detected: true, [
excludes: [], 'CloudFlare',
version: '1.3.5', 'Font Awesome',
versions: [ '1.3.5' ] }, 'Google Maps',
'Font Awesome': 'Modernizr',
{ app: 'Font Awesome', 'Nginx',
confidence: { 'html /<link[^>]* href=[^>]+font-awesome(?:\\.min)?\\.css/i': 100 }, 'RequireJS',
confidenceTotal: 100, 'jQuery'
detected: true, ]
excludes: [],
version: '', // Detailed info on links
versions: [] }, {
'Google Font API': CloudFlare: {
{ app: 'Google Font API', app: 'CloudFlare',
confidence: { 'html /<link[^>]* href=[^>]+fonts\\.(?:googleapis|google)\\.com/i': 100 }, confidence: { 'headers Server /cloudflare/i': 100 },
confidenceTotal: 100, confidenceTotal: 100,
detected: true, detected: true,
excludes: [], excludes: [],
version: '', version: '',
versions: [] }, versions: []
jQuery: },
{ app: 'jQuery', 'Font Awesome': {
confidence: { 'script /jquery.*\\.js/i': 100 }, app: 'Font Awesome',
confidenceTotal: 100, confidence: { 'html /<link[^>]* href=[^>]+font-awesome(?:\.min)?\.css/i': 100 },
detected: true, confidenceTotal: 100,
excludes: [], detected: true,
version: '', excludes: [],
versions: [] }, version: '',
'Twitter Bootstrap': versions: []
{ app: 'Twitter Bootstrap', },
confidence: 'Google Maps': {
{ 'script /(?:twitter\\.github\\.com/bootstrap|bootstrap(?:\\.js|\\.min\\.js))/i': 100, app: 'Google Maps',
'html /<link.+?href="[^"]+bootstrap(?:\\.min)?\\.css/i': 100 }, confidence: { 'script ///maps.googleapis.com/maps/api/js/i': 100 },
confidenceTotal: 100, confidenceTotal: 100,
detected: true, detected: true,
excludes: [], excludes: [],
version: '', version: '',
versions: [] } } versions: [] },
'Modernizr': {
app: 'Modernizr',
confidence: { 'script /modernizr(?:-([\d.]*[\d]))?.*\.js/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '2.6.2',
versions: [ '2.6.2' ] },
'Nginx': {
app: 'Nginx',
confidence: { 'headers Server /nginx(?:/([\d.]+))?/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '',
versions: [] },
'RequireJS': {
app: 'RequireJS',
confidence: { 'script /require.*\.js/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '',
versions: [] },
'jQuery': {
app: 'jQuery',
confidence:
{ 'script //([\d.]+)/jquery(\.min)?\.js/i': 100,
'script /jquery.*\.js/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '1.10.1',
versions: [ '1.10.1' ]
}
}
```
## Credits
Wappalyzer Author - Elbert Alias Wappalyzer Author - Elbert Alias
@ -115,8 +152,12 @@ Refer to the [wiki](https://github.com/AliasIO/Wappalyzer/wiki) for
[contribute](https://github.com/AliasIO/Wappalyzer/wiki/Contributing) and [contribute](https://github.com/AliasIO/Wappalyzer/wiki/Contributing) and
[more](https://github.com/AliasIO/Wappalyzer/wiki/_pages). [more](https://github.com/AliasIO/Wappalyzer/wiki/_pages).
## License
*Licensed under the [GPL](https://github.com/AliasIO/Wappalyzer/blob/master/LICENSE).* *Licensed under the [GPL](https://github.com/AliasIO/Wappalyzer/blob/master/LICENSE).*
## Donations
Donate Bitcoin: 16gb4uGDAjaeRJwKVmKr2EXa8x2fmvT8EQ - *Thanks!* Donate Bitcoin: 16gb4uGDAjaeRJwKVmKr2EXa8x2fmvT8EQ - *Thanks!*
![QR Code](https://wappalyzer.com/sites/default/themes/wappalyzer/images/bitcoinqrcode.png) ![QR Code](https://wappalyzer.com/sites/default/themes/wappalyzer/images/bitcoinqrcode.png)