npm config list --json
Category: Node.js & npm/yarn
npm config list --json
Print npm configuration as a JSON object for scripting
Same as 'npm config list' but formats the output as a JSON object — easier to parse in scripts or pipe into other tools.