Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

[Feature request] Comma first #4

Description

@bag-man

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' }
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions