Licence
ISC
Version
0.2.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
@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);