Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
babel-plugin-log-and-return
Advanced tools
Use an @log decorator to log the expression in the next line
Use an @log decorator to log the expression in the next line
Install • Usage • Created By • License
$ npm install --save-dev babel-plugin-log-and-return
Then add the plugin to your .babelrc
file or babel
configuration in package.json
:
"plugins": ["log-and-return"]
Simply add an @log
decorator in a comment above the line you want to log:
// @log
hello('world')
This compiles to something similar to:
_l(hello('world'))
function _l(x) {
console.log(x)
return x
}
MIT
FAQs
Use an @log decorator to log the expression in the next line
The npm package babel-plugin-log-and-return receives a total of 3 weekly downloads. As such, babel-plugin-log-and-return popularity was classified as not popular.
We found that babel-plugin-log-and-return 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.