es6-object-concise

Compiles JavaScript written using ES6 object method declaration to ES3 syntax. For example, this:

3 个版本
安装
npm install es6-object-concise
yarn add es6-object-concise
pnpm add es6-object-concise
bun add es6-object-concise
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-concise

Browserify

Browserify support is built in.

$ npm install es6-object-concise  # install local dependency
$ browserify -t es6-object-concise $file

Setup

First, install the development dependencies:

$ npm install

Then, try running the tests:

$ npm test
版本列表
0.1.2 2014-10-28
0.1.1 2014-09-26
0.1.0 2014-05-25