Name Last Update
..
lib Loading commit data...
.npmignore Loading commit data...
README.md Loading commit data...
package.json Loading commit data...

babel-plugin-property-literals

Turn valid property key literals to plain identifiers

Installation

$ npm install babel-plugin-property-literals

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["property-literals"]
}

Via CLI

$ babel --plugins property-literals script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["property-literals"]
});