@ -1,78 +1,145 @@
# 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
wappalyzer.detectFromUrl(options,function (err,apps,appInfo) {
var options={
console.log(err,apps,appInfo);
})
url : "http://codelanka.github.io/Presentation-Engines",
hostname:"codelanka.github.io",
debug:false
####Output
}
null [ 'AngularJS',
// detect from the url directly, library will make a request
'Font Awesome',
wappalyzer.detectFromUrl(options,function (err,apps,appInfo) {
'Google Font API',
'jQuery',
// output for the test
'Twitter Bootstrap' ] { AngularJS:
console.dir(apps);
{ app: 'AngularJS',
console.dir(appInfo);
confidence:
{ 'script //([\\d.]+(\\-?rc[.\\d]*)*)/angular(\\.min)?\\.js/i': 100,
})
'script /angular.*\\.js/i': 100 },
confidenceTotal: 100,
// sample data
detected: true,
var data = {
excludes: [],
version: '1.3.5',
url: options.url,
versions: [ '1.3.5' ] },
headers: {
'Font Awesome':
{ app: 'Font Awesome',
test: 1
confidence: { 'html /< link [^ > ]* href=[^>]+font-awesome(?:\\.min)?\\.css/i': 100 },
confidenceTotal: 100,
},
detected: true,
html: '< p > HTML CONTENT OF PAGE HERE< / p > '
excludes: [],
version: '',
};
versions: [] },
'Google Font API':
// detect from content you have already
{ app: 'Google Font API',
wappalyzer.detectFromHTML(options,function (err,apps,appInfo) {
confidence: { 'html /< link [^ > ]* href=[^>]+fonts\\.(?:googleapis|google)\\.com/i': 100 },
confidenceTotal: 100,
// output for the test
detected: true,
console.dir(apps);
excludes: [],
console.log(appInfo);
version: '',
versions: [] },
})
jQuery:
```
{ app: 'jQuery',
### Output from QuickStart
confidence: { 'script /jquery.*\\.js/i': 100 },
confidenceTotal: 100,
```javascript
detected: true,
excludes: [],
// Apps
version: '',
[
versions: [] },
'CloudFlare',
'Twitter Bootstrap':
'Font Awesome',
{ app: 'Twitter Bootstrap',
'Google Maps',
confidence:
'Modernizr',
{ 'script /(?:twitter\\.github\\.com/bootstrap|bootstrap(?:\\.js|\\.min\\.js))/i': 100,
'Nginx',
'html /< link. +? href = "[^" ]+ bootstrap (? : \\. min )? \\. css / i ' : 100 },
'RequireJS',
confidenceTotal: 100,
'jQuery'
detected: true,
]
excludes: [],
version: '',
// Detailed info on links
versions: [] } }
{
CloudFlare: {
app: 'CloudFlare',
Wappalyzer Author - Elbert Alias
confidence: { 'headers Server /cloudflare/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '',
versions: []
},
'Font Awesome': {
app: 'Font Awesome',
confidence: { 'html /< link [^ > ]* href=[^>]+font-awesome(?:\.min)?\.css/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '',
versions: []
},
'Google Maps': {
app: 'Google Maps',
confidence: { 'script ///maps.googleapis.com/maps/api/js/i': 100 },
confidenceTotal: 100,
detected: true,
excludes: [],
version: '',
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 ](https://wappalyzer.com/ ) is a
[Wappalyzer ](https://wappalyzer.com/ ) is a
[cross-platform ](https://github.com/AliasIO/Wappalyzer/wiki/Drivers ) utility that uncovers the
[cross-platform ](https://github.com/AliasIO/Wappalyzer/wiki/Drivers ) utility that uncovers the
@ -89,8 +156,17 @@ 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 ).
### NPM Module
* [Pasindu De Silva ](https://github.com/pasindud ) - Initial version with tests
* [Johann du Toit ](http://johanndutoit.net ) from [Passmarked ](http://passmarked.com ) - Updated to support just passing data and helped publish to NPMJS
## 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 )