Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

[Feature request] Comma first #4

Open
bag-man opened this issue May 18, 2016 · 0 comments
Open

[Feature request] Comma first #4

bag-man opened this issue May 18, 2016 · 0 comments

Comments

@bag-man
Copy link

bag-man commented May 18, 2016

It would be great if this could have an option to support comma first syntax. An example:

var target =
  { host: this.domain
  , port: this.port
  , path: '/'
  , method: 'GET'
  , agent: false
  , headers: { 'User-Agent': 'Mozilla/5.0' }
  }

We use the above formatting for objects, and ArgWrap will correctly wrap this down to one line, however when wrapping that one line back out to a multi-line object, it defaults to comma last (Example below), having an option to create the object in the above format would be amazing!

var target =
  {
    host: this.domain,
    port: this.port,
    path: '/',
    method: 'GET',
    agent: false,
    headers: { 'User-Agent': 'Mozilla/5.0' }
  }
@bag-man bag-man changed the title Comma first [Feature request] Comma first May 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant