Detecting Bundled JavaScript Libraries on Web using Property-Order Graphs
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.
- 🔍 Detect libraries in minified and bundled JavaScript
- 🌐 Analyze both local files and live web pages
Using npm:
$ npm i -g debun-cli- 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-w, --webTreat input as a web URL--saveSave downloaded scripts to local files (only fordetect -w)-v, --versionShow version-h, --helpShow help message
$ debun detect ./src/js
$ debun detect -w https://example.com
$ debun add lodash
$ debun resetThis tool is based on the research paper:
"Debun: Detecting Bundled JavaScript Libraries on Web using Property-Order Graphs"
- 📄 Paper: https://plrg.korea.ac.kr/assets/data/publication/ase25-park-debun.pdf
- 👥 Authors: Seojin Kim, Sungmin Park, Jihyeok Park
- 📅 Published: ASE 2025 (IEEE/ACM International Conference on Automated Software Engineering)