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.
babel-plugin-captains-log
Advanced tools
Babel plugin that injects helpful details into console statements
babel-plugin-captains-log
injects helpful details into console statements.
Current version only injects the console statments scope.
Transforms
function add(a, b) {
- console.log(a, b);
+ console.log("add:", a, b);
return a + b;
}
const subtract = (a, b) => {
- console.log(a, b);
+ console.log("subtract:", a, b);
return a - b;
};
See the Roadmap for a future features and oppurtunities to contribute.
This is a Babel plugin so it requires Babel v6 to run.
This module is distributed using npm which comes bundled with node:
npm install --save-dev babel-plugin-captains-log
To include the plugin in your project, create or open your .babelrc file at the root of your project. Then, add namespaces to your plugin list:
{
plugins: ["captains-log"]
}
Settings and options are below.
MIT
Thanks goes to these wonderful people (emoji key):
Kyle Welch 💻 📖 ⚠️ |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
Babel plugin that injects helpful details into console statements
The npm package babel-plugin-captains-log receives a total of 143 weekly downloads. As such, babel-plugin-captains-log popularity was classified as not popular.
We found that babel-plugin-captains-log 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.