0.1.2 • Published 10 years ago

es6-computed-property-keys v0.1.2

Weekly downloads
22
License
-
Repository
-
Last release
10 years ago

es6-computed-property-keys

Compiles JavaScript written using ES6 object computed property keys to ES4 syntax. For example, this:

var a = 'y';
var b = {
  x: 1,
  [a] : 2
};

compiles to this:

var a = 'y';
var b = function() {
  var obj = {
    x: 1
  };

  obj[a] = 2;
  return obj;
}();

Install

$ npm install es6-computed-property-keys

Browserify

Browserify support is built in.

$ npm install es6-computed-property-keys  # install local dependency
$ browserify -t es6-computed-property-keys $file

Setup

First, install the development dependencies:

$ npm install

Then, try running the tests:

$ npm test
0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago