wappalyzer-core

    6.8.19 • Public • Published

    Wappalyzer core

    Wappalyzer indentifies technologies on websites.

    Installation

    $ npm i wappalyzer-core

    Usage

    #!/usr/bin/env node
    
    const fs = require('fs')
    const Wappalyzer = require('./wappalyzer')
    
    // See https://www.wappalyzer.com/docs/dev/specification or use
    // https://raw.githubusercontent.com/AliasIO/wappalyzer/master/src/technologies
    const categories = JSON.parse(
      fs.readFileSync(path.resolve(`./categories.json`))
    )
    
    let technologies = {}
    
    for (const index of Array(27).keys()) {
      const character = index ? String.fromCharCode(index + 96) : '_'
    
      technologies = {
        ...technologies,
        ...JSON.parse(
          fs.readFileSync(
            path.resolve(`./technologies/${character}.json`)
          )
        ),
      }
    }
    
    Wappalyzer.setTechnologies(technologies)
    Wappalyzer.setCategories(categories)
    
    Wappalyzer.analyze({
      url: 'https://example.github.io/',
      meta: { generator: ['WordPress'] },
      headers: { server: ['Nginx'] },
      scripts: ['jquery-3.0.0.js'],
      cookies: { awselb: [''] },
      html: '<div ng-app="">'
    }).then((detections) => {
      const results = Wappalyzer.resolve(detections)
    
      console.log(results)
    })

    Install

    npm i wappalyzer-core

    DownloadsWeekly Downloads

    729

    Version

    6.8.19

    License

    MIT

    Unpacked Size

    15.1 kB

    Total Files

    3

    Last publish

    Collaborators

    • wappalyzer