
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.
fix-module-naming
Advanced tools
Utility to update all modules to camelCase (from underscore) and to capitalize constructor functions
Matches all .js
files, camelCases their name, and if a module.exports
assignment to either a function declaration or invocation is found, then also capitalizes it, and renames it.
Searches for all require(...)
calls for the file and renames it accordingly.
npm install -g fix-module-naming
fix-module-naming .
where .
is either an absolute or relative path
- m, --mock
enables mock view, so you can see the output of changes without making them
- i, --ignore <items>
a comma-delimited list of patterns in folders to ignore
FAQs
Utility to update all modules to camelCase (from underscore) and to capitalize constructor functions
We found that fix-module-naming 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
/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.