
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@magic/format
Advanced tools
run prettier and format your code.
be in a nodejs project.
npm i --save-dev @magic/format
edit package.json:
{
"scripts": {
"format": "f -w",
"format:check": "f"
}
}
npm run format will format and overwrite your source files,
npm run format:check will list the files that would be changed.
you can install this library globally, but the recommendation is to add the dependency and scripts to the package.json file.
this both explains to everyone that your app has this dependencies as well as keeping your bash free of clutter
npm i -g @magic/format
// check formatting using prettier but do not write
f
// format and overwrite files using prettier
f -w
@magic/format supports a number of prettier plugins out of the box as optional peerDependencies. Just install any of the following and prettier will start checking the appropriate files:
first commit
update deps
update info messages
update dependencies
messages now being logged from bin.mjs, making src/index.mjs return a list of changedFiles instead.
update dependencies
update prettier
update dependencies
bump required node version to 14.2.0
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies (@magic/fs)
update dependencies
update dependencies
release to refresh npm cache
update @magic/types and intermediate deps to avoid circular dependency
update depdendencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
mjs, js, ts, json, jsx, tsx, svelte, astro, markdown, mdadd css, scss, sass filetypes
catch SIGINT and wait for files to write before executing process.exit()
actually distribute @prettier/plugin-pug
update dependencies
update dependencies
...
FAQs
format your code.
We found that @magic/format 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.