babel-plugin-hodor
v1.0.1
Published
Write code like hodor
Downloads
10
Readme
babel-plugin-hodor
Babel plugin to hodor. Inspired by https://redd.it/4dqlbr
Installation
$ npm install babel-plugin-hodor
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["hodor"]
}
Via CLI
$ babel --plugins hodor script.js
Via Node API
require('babel').transform('code', {
plugins: ['hodor']
});
Example
// input
const foo = bar => {
const baz = 123;
return bar + baz;
}
// output
"use strict";
var hodor = function hodor(Hodor) {
var hodOr = 123;
return Hodor + hodOr;
};