https://github.com/assert-kth/depprune
DepPrune is a tool to debloat npm dependencies through dynamic analysis.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.0%) to scientific vocabulary
Repository
DepPrune is a tool to debloat npm dependencies through dynamic analysis.
Basic Info
Statistics
- Stars: 2
- Watchers: 13
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
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
Owner
- Name: ASSERT
- Login: ASSERT-KTH
- Kind: organization
- Location: Sweden
- Website: https://github.com/ASSERT-KTH/
- Repositories: 87
- Profile: https://github.com/ASSERT-KTH
assertEquals("Research group at KTH Royal Institute of Technology, Stockholm, Sweden", description);
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Dependencies
- 204 dependencies
- @babel/types ^7.10.2 development
- @types/babel__generator ^7.6.1 development
- @types/babel__traverse ^7.0.12 development
- @types/esprima * development
- @types/node ^14.0.9 development
- @babel/core ^7.10.2
- @babel/generator ^7.10.2
- @babel/parser ^7.10.2
- @babel/traverse ^7.10.1
- ast-module-types ^3.0.0
- ast-types ^0.13.3
- dependency-tree ^8.1.2
- escodegen *
- esprima *
- fs-extra ^9.0.1
- node-source-walk ^5.0.0
- recast ^0.21.1
- tar ^6.0.2
- yargs ^15.4.1