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.
-
Set Author Information: Configure your name and email for
npm
andYarn
. -
Proxy Setup: Easily set HTTP and HTTPS proxy settings for
npm
andYarn
. -
Configuration Check: Verify the current configuration of
npm
,Yarn
, andnpx
. -
Automatic Detection: NodeNanny checks whether
npm
,Yarn
, ornpx
are installed and adjusts accordingly.
To install NodeNanny globally, use npm:
npm install -g nodenanny
This command will make the nodenanny
CLI available globally.
NodeNanny provides several options to help you configure your environment:
-
Help: Display the help message.
nodenanny --help
-
Set Author Name and Email:
nodenanny --name "Your Name" --email "your.email@example.com"
-
Configure Proxy Settings:
nodenanny --proxy
This will prompt you to enter the HTTP and HTTPS proxy URLs.
-
Check Current Configurations:
nodenanny --check-config
Displays the current configurations for
npm
,Yarn
, andnpx
.
nodenanny --name "John Doe" --email "john.doe@example.com"
This command sets your name and email in both npm
and Yarn
configurations.
nodenanny --proxy
This will guide you through setting up HTTP and HTTPS proxies for npm
and Yarn
.
nodenanny --check-config
Displays the current configuration settings for npm
, Yarn
, and npx
.
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.
Contributions are welcome! Feel free to submit issues and pull requests to improve NodeNanny.
Lucian BLETAN