3.2.5 • Published 4 years ago

babel-plugin-function-log v3.2.5

Weekly downloads
16
License
-
Repository
github
Last release
4 years ago

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"]
});