Skip to content

DepPrune is a tool to debloat npm dependencies through dynamic analysis.

Notifications You must be signed in to change notification settings

ASSERT-KTH/DepPrune

Repository files navigation

Start up

git clone

Configurations about each package

Generate repo.json, which is a file with all necessary meta information for one or multiple repos.

{
  "projects": [
    {
      "folder": "airtap",
      "repo": "airtap/airtap",
      "gitURL": "https://github.com/airtap/airtap.git",
      "unitTest": "test"
    }
  ]
}

Detect Unused dependencies for the repo

sh detect_bloated_strace.sh

Automatically remove dependencies.

sh remove_bloated_dependencies.sh

Generate debloated metadata files.

python debloat_pck_json.py package_name
python debloat_lock_file.py package_name

We can observe that new versions of package.json and package-lock.json is generated, without the bloated dependencies.

Node version in environment: v16.17.0
npm version in environment: v9.3.1

About

DepPrune is a tool to debloat npm dependencies through dynamic analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published