Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@namchee/dependent
Advanced tools
Simple utility CLI tool to analyze which files are using a Node dependency 🚀
Dependent is a simple utility CLI to find out which files in your JavaScript project is using a certain dependency. 🚀
Say, you want to uninstall some dependency since it is not needed anymore in file x
. You proceed to execute npm uninstall x
, the uninstallation completed successfully, and then you continue the development. Sadly, you realized that x
is actually imported by another files. Your project now breaks by your careless mistake.
The above scenario is fine for small projects since they are easier to test and execute (and compile, if you're using a superset of JavaScript). But, what about big projects where it took so long to execute and compile? What about dynamic imports in not-fully-tested projects where the code may fail silently? This utility aims to fix those issues.
Another use case is for new team member so they can analyze why and where a dependency is needed so the onboarding process can go faster.
[files...]
argument.silent
argument.You can install it globally with your favorite package manager. Below is the example of installation with npm
.
npm install -g @namchee/dependent
The utility can be executed either with
dependent
ordeps
.
dependent <package> [files...]
Positionals:
package, p Package name to be analyzed. [string]
files, f Files to be analyzed in glob pattern relative to the current
project directory. [string] [default:
["!(node_modules)/**/*.js","!(node_modules)/**/*.mjs","*.js","*.mjs"]]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-m, --module Parse all files as ES module files [boolean]
-r, --require Parse all files as JS scripts [boolean]
-s, --silent Skip all unreadable and unparseable files instead of throwing
errors [boolean] [default: false]
-t, --table Print the output in table format [boolean] [default: false]
This project is licensed under the MIT License.
FAQs
Simple utility CLI tool to analyze which files are using a Node dependency 🚀
The npm package @namchee/dependent receives a total of 0 weekly downloads. As such, @namchee/dependent popularity was classified as not popular.
We found that @namchee/dependent 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.