3.2.5 • Published 5 years ago
babel-plugin-function-log v3.2.5
babel-plugin-function-log
Insert console.log to the top of body in function.
This repo is not recommended.
Please view the better tools, funlog
Example
In
// input codeOut
"use strict";
// output codeInstallation
$ npm install babel-plugin-function-logUsage
Via .babelrc (Recommended)
.babelrc
{
  "plugins": ["function-log"]
}Via CLI
$ babel --plugins function-log script.jsVia Node API
require("babel-core").transform("code", {
  plugins: ["function-log"]
});