es6-object-concise
v0.1.2
Published
Compiles JavaScript written using ES6 object method declaration to ES3 syntax. For example, this:
Downloads
1,110
Readme
es6-object-concise
Compiles JavaScript written using ES6 object method declaration to ES3 syntax. For example, this:
var a = {
b() {
return "c";
}
};is mostly equivalent to:
var a = {
b: function b() {
return "c";
}
};Install
$ npm install es6-object-conciseBrowserify
Browserify support is built in.
$ npm install es6-object-concise # install local dependency
$ browserify -t es6-object-concise $fileSetup
First, install the development dependencies:
$ npm installThen, try running the tests:
$ npm test