babel/packages/babel-plugin-transform-es3-property-literals
2016-05-02 19:43:49 -04:00
..
2015-10-29 22:57:23 -07:00
2016-05-02 19:43:49 -04:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-es3-property-literals

Ensure that reserved words are quoted in object property keys

Installation

$ npm install babel-plugin-transform-es3-property-literals

Usage

.babelrc

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

Via CLI

$ babel --plugins transform-es3-property-literals script.js

Via Node API

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