Detect and Remove Unused Dependencies in Projects
Recently when looking at some projects, I found many dependencies. After searching a few randomly, I discovered they weren’t being used and could be removed. However, checking and removing these packages one by one is too troublesome.
Based on this need, I wrote a small tool to efficiently detect and remove unused dependencies.
@stacker/remove-unused-deps
Usage: Execute the following command in the project root directory, interactively select unused dependencies, and press enter to uninstall and remove them.
1 | npx @stacker/remove-unused-deps@latest |
Principle
One-Click Open VSCode Projects with Alfred
Cursor(VSCode) has been used frequently for coding, but opening projects is inefficient. I wanted to create an Alfred Workflow for a one-click VSCode project opening. Research showed that VSCode stores recently opened projects, making this technically feasible.
Screenshots
Download: VSCode-Open Project
Implementation Approach
Using DeepSeek AI Translation with Eudic Dictionary
Eudic Dictionary’s default translation quality is average, and using Eudic AI requires a separate payment. Fortunately, Eudic supports adding third-party translation engines, including OpenAI and DeepSeek. DeepSeek AI offers free credits and costs only 1CNY per million tokens, making it highly cost-effective. Therefore, I chose to use DeepSeek AI as the translation engine.
Here are the detailed steps.
Add Translation Engine
Path: Eudic Dictionary => Translation & Writing => Settings => Engine Settings => Add Translation Engine
Using DeepSeek
DeepSeek AI has gained considerable attention recently. Today, I learned about it and considered migrating some of my current OpenAI services to DeepSeek.
Platform
Similar to OpenAI, DeepSeek provides an API, web version, and App. Unfortunately, it hasn’t launched a WeChat mini-program version yet.