
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
config-cli-helper
Advanced tools
Helper for quickly writing commands such as npm config ls、 npm config get、 npm config set ...
cmd list:
you-cli config -hyou-cli config set <key>=<value> [<key>=<value> ...]you-cli config get [<key> [<key> ...]]you-cli config del <key> [<key> ...]you-cli config ls [--json]you-cli config resetnpm i config-cli-helper or yarn add config-cli-helper
import cac from 'cac';
import { getConfigStore, getConfigCli, cacHelpWithConfigCli, ParamsDescription } from 'config-cli-helper';
const cliName = 'you-cli';
const defaultConfigStore = {
config: {
cwd: './',
},
};
const paramsDescription: ParamsDescription = [
{ key: 'cwd'; value: string; description: string; },
];
const configStore = getConfigStore(cliName, defaultConfigStore);
// For example, this cmd: `you-cli config ls`
if (process.argv[2] === 'config') {
const configCli = getConfigCli({
cliName,
configStore, // If you want to customize 'configStore', you can pass in this parameter. Otherwise, it will generate a "configStore" for you by default
paramsDescription,
});
configCli.parse(process.argv.slice(1));
process.exit();
}
console.log('config: ', configStore.get('config')); // { cwd: './' }
// Other cmd. For example, this cmd: `you-cli -h`
const cli = cac(cliName);
cli.help(
cacHelpWithConfigCli(cliName)
);
FAQs
config-cli-helper
We found that config-cli-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.