5991f0c082b94c9dc1f61d6dd237876a1aadf56d
[platform/framework/web/crosswalk-tizen.git] /
1 # esformatter-literal-notation [![Build Status](https://travis-ci.org/kewah/esformatter-literal-notation.svg?branch=master)](https://travis-ci.org/kewah/esformatter-literal-notation)
2
3 [esformatter](https://github.com/millermedeiros/esformatter) plugin that converts array and object constructors to literal notations
4
5 ```js
6 var foo = new Array();
7 // converted to:
8 var foo = [];
9
10 var bar = new Object();
11 // converted to:
12 var bar = {};
13 ```
14
15 ## Install
16
17 With [npm](http://npmjs.org) do:
18
19 ```bash
20 $ npm install esformatter-literal-notation
21 ```
22
23 ## Usage
24
25 esformatter config file:
26
27 ```json
28 {
29   "plugins": [
30     "esformatter-literal-notation"
31   ]
32 }
33 ```
34
35 ## License
36
37 MIT