
Product
Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.
@pnpm/npm-conf
Advanced tools
Get the npm config
$ pnpm add @pnpm/npm-conf
const npmConf = require('@pnpm/npm-conf');
const conf = npmConf();
conf.get('prefix')
//=> //=> /Users/unicorn/.npm-packages
conf.get('registry')
//=> https://registry.npmjs.org/
To get a list of all available npm config options:
$ npm config list --long
Returns the npm config.
Returns the default npm config.
MIT © Kevin Mårtensson
The 'rc' package is a non-npm-specific configuration loader that supports various configuration file formats and environment variables. It is more general-purpose compared to @pnpm/npm-conf, which is specifically tailored for npm configurations.
The 'config' package provides a way to manage configuration files for Node.js applications. It supports multiple environments and allows for hierarchical configurations. Unlike @pnpm/npm-conf, it is not focused on npm settings but rather on application-specific configurations.
The 'dotenv' package loads environment variables from a .env file into process.env. It is useful for managing environment-specific settings but does not provide the same level of npm-specific configuration management as @pnpm/npm-conf.
FAQs
Get the npm config
The npm package @pnpm/npm-conf receives a total of 9,827,717 weekly downloads. As such, @pnpm/npm-conf popularity was classified as popular.
We found that @pnpm/npm-conf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.