NPMRC Finder — VSCode Extension
✨ Easily find, manage, and edit .npmrc files across your workspace, home directory, and global npm configuration!
✨ Features
- 🔍 Automatically detects
.npmrc files in workspace, home directory, and global npm configuration
- 📝 Quick access to edit any detected
.npmrc file
- 🔄 Real-time monitoring of
.npmrc file changes
- 📊 Status bar indicator showing number of detected .npmrc files
- 🎯 Quick-pick menu for easy file selection
- 🧪 Comprehensive test coverage
📥 Installation
- Open the Extensions view in Visual Studio Code (
Cmd+Shift+X or Ctrl+Shift+X ).
- Search for npmrc-finder and click Install.
- Once installed, the extension will automatically detect and monitor
.npmrc files!
🚀 Usage
- Look for the package icon (📦) in the status bar showing the number of detected
.npmrc files.
- Click the status bar item to open the quick-pick menu.
- Select any
.npmrc file from the list to open it in the editor.
💡 Example
The extension automatically detects .npmrc files in:
- Current workspace folders
- User's home directory (
~/.npmrc )
- Global npm configuration (
/usr/local/etc/npmrc or %AppData%\npm\etc\npmrc )
When you click the status bar item, you'll see a menu like:
Select .npmrc file to edit
> 📦 /path/to/workspace/.npmrc
📦 ~/.npmrc (Recently edited)
📦 /usr/local/etc/npmrc
🛠️ Development
Project Structure
npmrc-finder/
├── src/
│ ├── extension.ts # Main extension code
│ ├── npmrcFinder.ts # Core functionality
│ └── test/ # Test files
│ └── suite/ # Test suites
├── package.json # Extension manifest
└── tsconfig.json # TypeScript configuration
📜 License
This project is licensed under the MIT License. See the LICENSE file for more details.
| |