Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
prettier-plugin-compactify
Advanced tools
Available on npm as prettier-plugin-compactify
This plugin collapses objects' formatting before passing the code to Prettier.
Effectively it preprocesses the code such that:
const obj = {
foo: "bar"
}
Becomes:
const obj = {foo: "bar"
}
Which prettier will try to fit in a single line:
const obj = { foo: "bar" }
This plugin was created because Prettier keeps arbitrary newlines after a {
even if the user does not want them. For more context see
issue 10757.
cd
to this repositorypre-commit install
Additionally:
yarn fix
for formattingyarn lint
for lintingyarn release
FAQs
Available on npm as `prettier-plugin-compactify`
We found that prettier-plugin-compactify 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.