
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
help-parser
Advanced tools
parse any unix standard help output (from running -h/--help)
npm install help-parser
const parseHelpOutput = require('help-parser')
const doc =`
Usage:
node [--statistics] [--count] [--benchmark] PATH...
node --version
Options:
-h --help show this help message and exit
--version show version and exit
-v --verbose print status messages
-q --quiet report only file names
-r --repeat show all occurrences of the same error
--exclude=PATTERNS exclude files or directories[default: .svn,CVS,.bzr,.hg,.git]
`;
const help = parseHelpOutput(doc, 'node');
console.log(help)
gives
{ cmdName: 'node',
usage:
[ 'Usage:',
'node [--statistics] [--count] [--benchmark] PATH...',
'node --version' ],
args:{
'--help': { alias: '-h', doc: 'show this help message and exit' },
'--version': { alias: null, doc: 'show version and exit' },
'--verbose': { alias: '-v', doc: 'print status messages' },
'--quiet': { alias: '-q', doc: 'report only file names' },
'--repeat': { alias: '-r', doc: 'show all occurrences of the same error' },
'--exclude':{
alias: null,
doc:
'exclude files or directories[default: .svn,CVS,.bzr,.hg,.git]'
}
}
}
or clone the git repo and help develop and add to this project
FAQs
parse unix help output to object
The npm package help-parser receives a total of 12 weekly downloads. As such, help-parser popularity was classified as not popular.
We found that help-parser 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.