
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
esformatter-braces
Advanced tools
esformatter plugin for enforcing braces around statements
Esformatter-braces is a plugin for esformatter meant for brace enforcement around statements. Recommended by Douglas Crockford in his coding style guide.
Turn this:
if (theSkyIsBlue)
stareAtItForAWhile();
into:
if (theSkyIsBlue) {
stareAtItForAWhile();
}
For more information see:
Currently the following node statements are handled: If conditionals, While, Do While, For loops
For any other formatting (such as braces placement, spacing and line wrapping) use esformatter or other plugins.
$ npm install esformatter-braces --save-dev
Newest esformatter versions autoload plugins from your node_modules
See this
Add to your esformatter config file:
{
"plugins": [
"esformatter-braces"
]
}
Or you can manually register your plugin:
// register plugin
esformatter.register(require('esformatter-braces'));
var fs = require('fs');
var esformatter = require('esformatter');
//register plugin manually
esformatter.register(require('esformatter-braces'));
var str = fs.readFileSync('someKewlFile.js').toString();
var output = esformatter.format(str);
//-> output will now contain the formatted string
See esformatter for more options and further usage.
MIT @Gilad Peleg
FAQs
esformatter plugin: enforces braces around statements
We found that esformatter-braces 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.