Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
webpack-dep-finder
Advanced tools
A Webpack plugin and CLI tool for efficiently pinpointing and analyzing dependencies in your Webpack bundles using regex. Ideal for optimizing and streamlining the build process during iterative development, helping to detangle complex dependency trees qu
A fast and efficient tool for pinpointing the issuer path of a specific dependency in your Webpack bundles.
Found target dependency: /path/to/your/dependency.js
/path/to/your/entry-file.js
/path/to/another/dependency.js
/path/to/your/dependency.js
This output shows the path from the entry file to the target dependency.
You can use webpack-dep-finder
as a CLI tool:
# Install the package globally
npm install -g webpack-dep-finder
# Run the CLI tool
npx webpack-dep-finder --dependency-pattern /your-regex-pattern/ --config path/to/webpack.config.js
-d, --dependency-pattern <pattern> Regex pattern to match the resource path/filename to locate. (Required)
--no-halt-on-match Continue searching even after the dependency is found. (Default: false)
--show-webpack-output Display Webpack's build output. (Default: false)
-c, --config <path> Path to the Webpack configuration file. (Default: "webpack.config.js")
-V, --version Output the version number.
-h, --help Output usage information.
# NPM
npm install --save-dev webpack-dep-finder
# Yarn
yarn add -D webpack-dep-finder
const WebpackDepFinder = require("webpack-dep-finder");
new WebpackDepFinder({
dependencyPattern: /your-regex-pattern/,
haltOnMatch: true,
showWebpackOutput: false
});
Speed Benefits:
webpack-dep-finder
identifies dependencies quickly by stopping the search as soon as the specified dependency is found.Visualizing Speedup:
webpack-dep-finder
so fast?webpack-dep-finder
is designed for speed by stopping the search as soon as the specified dependency is found during the Webpack compilation process. This approach contrasts with tools that analyze the entire bundle, making webpack-dep-finder
a quicker option for targeted searches.
If the specified dependency isn't found, webpack-dep-finder
will complete the entire build process without performing any additional analysis. Ensure that the dependency name is correct and that it is included in your Webpack build.
puj |
We welcome contributions to Webpack Dep Finder! Please see CONTRIBUTING.md for more details.
FAQs
A Webpack plugin and CLI tool for efficiently pinpointing and analyzing dependencies in your Webpack bundles using regex. Ideal for optimizing and streamlining the build process during iterative development, helping to detangle complex dependency trees qu
The npm package webpack-dep-finder receives a total of 23 weekly downloads. As such, webpack-dep-finder popularity was classified as not popular.
We found that webpack-dep-finder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.