0.2.1 • Published 4 years ago

@overfuse/babel-plugin-console-prefix v0.2.1

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

@overfuse/babel-plugin-console-prefix

Babel plugin which adds a prefix to console.log argument.

Install

yarn add @overfuse/babel-plugin-console-prefix

Usage

Via .babelrc

{
  "plugins": [
    ["@overfuse/babel-plugin-console-prefix", { "prefix": "Bonify rocks" }]
  ]
}

Example transpilation

// input
console.log(n);

// output
console.log("Bonify rocks" + n);