Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Accurately detect which Node dependencies are in-use with V8 Coverage 🔥
$ npx deps [...command]
eg. npx deps npm run build
Install globally if you don't want to use it via npx.
npm i -g deps
Prefix your Node command with deps
and it will analyze and output the dependencies it used
$ deps ...
eg. deps npm run build
Prerequisite: install deps
globally
$ . deps-start
npm run dev
npm run build
npm run lint
$ deps analyze
deps analyze -o output.json
deps -f output.json
$ . deps-stop
deps
detects which modules are loaded by using V8's code coverage feature, so it's very accurate. However, it doesn't detect file-system reads, as they are simply read as text rather than actually being parsed and executed. That means it can't detect what files are statically analyzed by bundlers (eg. Webpack, Rollup, etc.). I am considering supporting FS reads in the future.
depcheck
?depcheck
statically analyzes your project to see which dependencies are imported, avoiding the need to execute code. In contrast, deps
executes code to analyze which dependencies were loaded during run-time. They work in completely different ways, but a major drawback for me is that depcheck
requires a "special" for supporting whether a module was loaded via dev-tools.
MIT
FAQs
Node dependency usage checker using V8 Coverage
We found that deps demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.