
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
yargs-help-output
Advanced tools
Update docs to include the full output of yargs help
yargs-help-output <input-file-path>
Update docs to include the full output of yargs help
Positionals:
input-file-path The file to be updated [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--bin-path The yargs entry file if you're running it directly
[string]
--npm-script-name The NPM script that runs your yargs CLI [string]
--replacement-sigil The metadata divider used to find the replacement
[string] [default: "<!-- CODEGEN_CLI_HELP -->"]
--help-text-modify String/regex replacements to modify the help text (ex
--help-text-modify.search "^foo$"
--help-text-modify.replacement "") [array] [default: []]
let outputString = await updateHelpTextByString({
// required
inputString,
// optional
replacementSigil = '<!-- CUSTOM_SIGIL -->',
// optional
helpTextModifyReplacements: [
[/^Options:$\r?\n/m, ''],
],
// and/or
helpTextModifyCallback(helpText) {
return helpText.replace(/^Options:$\r?\n/m, '');
},
binPath: './my-cli.js',
// or
npmScriptName: 'start',
// optional
cwd,
});
await updateHelpTextByFile({
// required
inputFilePath,
// optional
replacementSigil = '<!-- CUSTOM_SIGIL -->',
// optional
helpTextModifyReplacements: [
[/^Options:$\r?\n/m, ''],
],
// and/or
helpTextModifyCallback(helpText) {
return helpText.replace(/^Options:$\r?\n/m, '');
},
binPath: './my-cli.js',
// or
npmScriptName: 'start',
// optional
cwd,
});
FAQs
Update docs to include the full output of yargs help
The npm package yargs-help-output receives a total of 90 weekly downloads. As such, yargs-help-output popularity was classified as not popular.
We found that yargs-help-output 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.