babel-plugin-function-log
v3.2.5
Published
insert console.log to the top of body in function
Downloads
5
Maintainers
Readme
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 code
Out
"use strict";
// output code
Installation
$ npm install babel-plugin-function-log
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["function-log"]
}
Via CLI
$ babel --plugins function-log script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["function-log"]
});