nodenanny
v1.0.3
Published
NodeNanny: Your friendly Node.js configuration helper.
Readme
NodeNanny
NodeNanny is a friendly CLI tool designed to help you quickly configure your Node.js environment by setting up npm, Yarn, and npx. It allows you to easily specify author information, configure proxies, and check the current configuration of your tools.
Features
- Set Author Information: Configure your name and email for
npmandYarn. - Proxy Setup: Easily set HTTP and HTTPS proxy settings for
npmandYarn. - Configuration Check: Verify the current configuration of
npm,Yarn, andnpx. - Automatic Detection: NodeNanny checks whether
npm,Yarn, ornpxare installed and adjusts accordingly.
Installation
To install NodeNanny globally, use npm:
npm install -g nodenannyThis command will make the nodenanny CLI available globally.
Usage
NodeNanny provides several options to help you configure your environment:
Basic Commands
Help: Display the help message.
nodenanny --helpSet Author Name and Email:
nodenanny --name "Your Name" --email "[email protected]"Configure Proxy Settings:
nodenanny --proxyThis will prompt you to enter the HTTP and HTTPS proxy URLs.
Check Current Configurations:
nodenanny --check-configDisplays the current configurations for
npm,Yarn, andnpx.
Examples
Example 1: Set Up Author Information
nodenanny --name "John Doe" --email "[email protected]"This command sets your name and email in both npm and Yarn configurations.
Example 2: Configure Proxy Settings
nodenanny --proxyThis will guide you through setting up HTTP and HTTPS proxies for npm and Yarn.
Example 3: Check Configuration
nodenanny --check-configDisplays the current configuration settings for npm, Yarn, and npx.
Error Handling
NodeNanny automatically detects whether npm, Yarn, or npx are installed. If a tool is not installed, it skips configuration for that tool and provides a friendly message.
Contributing
Contributions are welcome! Feel free to submit issues and pull requests to improve NodeNanny.
Author
Lucian BLETAN
