Skip to content

ku-plrg/debun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debun-cli

Detecting Bundled JavaScript Libraries on Web using Property-Order Graphs

Overview

Debun-cli is a CLI tool that detects third-party JavaScript libraries embedded inside bundled web applications. Even after transformations performed by bundlers such as Webpack, Rollup, or Parcel, Debun leverages Property-Order Graphs (POGs) to capture characteristics that remain stable, enabling accurate identification of libraries inside minified and concatenated code.

Features

  • 🔍 Detect libraries in minified and bundled JavaScript
  • 🌐 Analyze both local files and live web pages

Installation

Using npm:

$ npm i -g debun-cli

Usage

Commands

  • Detect libraries from local JavaScript files or a directory
$ debun detect <path>
  • Detect libraries from a web page
$ debun detect -w <url>
  • Add packages to the database
$ debun add <package-name1> <package-name2> ...
  • Reset the database to the original state
$ debun reset
  • List all libraries in the database
$ debun list

Options

  • -w, --web Treat input as a web URL
  • --save Save downloaded scripts to local files (only for detect -w)
  • -v, --version Show version
  • -h, --help Show help message

Examples

$ debun detect ./src/js
$ debun detect -w https://example.com
$ debun add lodash
$ debun reset

Related

Research Paper

This tool is based on the research paper:

"Debun: Detecting Bundled JavaScript Libraries on Web using Property-Order Graphs"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors