JavaScript/TypeScript dependency reachability (Beta)
Endor Labs provides superior JavaScript dependency reachability. Apart from analyzing manifest files, Endor Labs enumerates the import statements in your JavaScript code to match the import statements with the pre-installed packages and recursively traverses all files to create a dependency tree with the actual versions that are installed and used in the project. Endor Labs expertly resolves JavaScript dependencies to identify:- Dependencies listed in the manifest file but not used by the application
- Dependencies used by the application but not listed in the manifest file
- Dependencies listed in the manifest as transitive but used directly by the application
- Dependencies categorized as test dependencies but used directly by the application
Dependency reachability is in the Beta phase and is turned off by default. To detect phantom dependencies, run the endorctl scan with the flag
--disable-phantom=false.pnpm package manager support for JavaScript/TypeScript projects (Beta)
Users can now scan the JavaScript projects that have pnpm as their package manager. pnpm 3.0.0 and higher versions are supported.To scan JavaScript projects using pnpm, set the environment variable
ENDOR_PNPM_ENABLED to true and then run the endorctl scan.