es6-object-short

Compiles JavaScript written using ES6 short object properties to ES4 syntax. For example, this:

3 个版本
安装
npm install es6-object-short
yarn add es6-object-short
pnpm add es6-object-short
bun add es6-object-short
README

es6-object-short

Compiles JavaScript written using ES6 short object properties to ES4 syntax. For example, this:

var a = {
  b,
  c
};

compiles to this:

var a = {
  b: b,
  c: c
};

Install

$ npm install es6-object-short

Browserify

Browserify support is built in.

$ npm install es6-object-short  # install local dependency
$ browserify -t es6-object-short $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-25
0.1.0 2014-05-25