babel/packages/babel-plugin-transform-es3-property-literals
Sebastian McKenzie 4a1e5c17b4 v6.1.18
2015-11-12 13:46:30 -08:00
..
2015-10-29 22:57:23 -07:00
2015-11-12 13:46:30 -08: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"]
});