DEV Community

S.Shanmukha Sai reddy
S.Shanmukha Sai reddy

Posted on

πŸ› οΈ Introducing reusepkg: Reuse Node.js Packages Across Projects πŸš€

Every time we start a new Node.js project, we re-install the same packages again and again.

Disk space wasted πŸ“‚

Bandwidth wasted 🌐

Setup time wasted ⏳

I got tired of this, so I built reusepkg
πŸŽ‰

πŸ’‘ What it does

Instead of duplicating node_modules for every project, reusepkg creates symlinks to packages you already have.

Saves 50–80% disk space

Speeds up project setup ⚑

Works across Windows, macOS, Linux

πŸ”‘ Features

βœ… Smart registry to track package locations
βœ… Intelligent package discovery (uses existing before installing new)
βœ… Beautiful CLI with emojis 🎨
βœ… Detect & fix broken symlinks (reusepkg doctor)
βœ… Clean up unused packages (reusepkg clean)

πŸ“¦ Quick Start
npm install -g reusepkg

reusepkg install express
reusepkg link
reusepkg doctor

πŸ“Š Example Impact

Installed express once in Project A.

Started Project B, ran reusepkg link β†’ boom πŸ’₯ symlink created, no re-download, no duplication.

πŸ™Œ Why I Built This

It started as a small annoyance ("why am I downloading express for the 100th time?").
Now it’s a tool that can save real time and resources for any Node.js developer.

πŸ‘‰ Try it out: https://www.npmjs.com/package/reusepkg

πŸ‘‰ Contribute: https://github.com/shanmukhasaireddy13/reusepkg

Made with ❀️ for the Node.js community.

Top comments (0)