babel-plugin-transform-rename-properties
Rename JavaScript properties.
Installation
$ yarn add --dev babel-plugin-transform-rename-properties
Example
Input file:
const obj = foo: bar: 1 { return 2; }; const foo = obj; { return objfoobar + obj;}
.babelrc
:
Output:
const obj = __FOO__: bar: 1 "I HAVE SPACES" return 2; ; const __FOO__: foo = obj; { return obj__FOO__bar + obj"I HAVE SPACES";}
License
This plugin is licensed under the MIT license. See LICENSE.