https://github.com/magicdawn/esformatter-curly
keep original curly fot import & one line object literal
https://github.com/magicdawn/esformatter-curly
Last synced: over 1 year ago
JSON representation
keep original curly fot import & one line object literal
- Host: GitHub
- URL: https://github.com/magicdawn/esformatter-curly
- Owner: magicdawn
- License: mit
- Created: 2016-05-20T00:53:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T23:41:36.000Z (about 9 years ago)
- Last Synced: 2025-03-13T20:48:34.627Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# esformatter-curly
> keep original curly fot import & one line object literal
[](https://travis-ci.org/magicdawn/esformatter-curly)
[](https://coveralls.io/github/magicdawn/esformatter-curly?branch=master)
[](https://www.npmjs.com/package/esformatter-curly)
[](https://www.npmjs.com/package/esformatter-curly)
[](http://magicdawn.mit-license.org)
## Install
```
npm i esformatter --save-dev
npm i esformatter-curly --save-dev
```
## Usage
for detail see [notes](notes/)
1. keep multiline import
```js
import {
x,
y
} from 'utils';
```
2. keep short object literal inline
```js
var o1 = { x: 1, y: 2 };
var o2 = {
x: 2,
y: 3
};
```
## Changelog
[CHANGELOG.md](CHANGELOG.md)
## License
the MIT License http://magicdawn.mit-license.org