Skip to content

to-one-line

Convert multiple lines object to one line object.

Triggers

  • /// to-one-line
  • /// tol
  • /// 21l

Examples

js
/// to-one-line
const foo = {
  bar: 1,
  baz: 2
}

Will be converted to:

js
const foo = { bar: 1, baz: 2 }

Released under the MIT License.