Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
prettier-plugin-compactify
Advanced tools
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 they are not wanted. For more context see
issue 10757.
cd
to this repositorypre-commit install
Additionally:
yarn fix
formats all filesyarn lint
lints all filesyarn pack
yarn publish *.tgz
FAQs
Available on npm as `prettier-plugin-compactify`
The npm package prettier-plugin-compactify receives a total of 373 weekly downloads. As such, prettier-plugin-compactify popularity was classified as not popular.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.