Skip to content

overfuse/babel-plugin-console-prefix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published