npm.io
1.0.1 • Published 11 years ago

esformatter-literal-notation

Licence
MIT
Version
1.0.1
Deps
2
Vulns
0
Weekly
0
Stars
4

esformatter-literal-notation Build Status

esformatter plugin that converts array and object constructors to literal notations

var foo = new Array();
// converted to:
var foo = [];

var bar = new Object();
// converted to:
var bar = {};

Install

With npm do:

$ npm install esformatter-literal-notation

Usage

esformatter config file:

{
  "plugins": [
    "esformatter-literal-notation"
  ]
}

License

MIT

Keywords