
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 121 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.