1.0.1 • Published 8 years ago

babel-plugin-hodor v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

babel-plugin-hodor

NPM version Build status Downloads

Babel plugin to hodor. Inspired by https://redd.it/4dqlbr

Hodor

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;
};