Miss any of our Open RFC calls?Watch the recordings here! »

@nerevu/prettier-coffee

1.1.0 • Public • Published

Prettier Coffeescript

Uses prettier-plugin-coffeescript to prettify Coffeescript.

npm install -g @nerevu/prettier-coffee
prettier-coffee [options] file.coffee [file2.coffee ...]
cat file.coffee | prettier-coffee

Coffeescript goes in:

'table.sample-html'[
  m('tr'[
    m('th''Pandas')
    m('th''Kittens')
    m('th''Hedgehogs')
  ])
  m('tr'[
    m('td''foo')
    m('td''bar')
    m('td''baz')
  ])
  m('tr'[
    m('td''32')
    m('td''45')
    m('td''83')
  ])
  m('tr'[
    m('td''onomatopoeia')
    m('td''schadenfreude')
    m('td''antidisestablishmentarianism')
  ])
]

prettified Coffeescript comes out:

"table.sample-html"[
  m "tr"[m("th""Pandas")m("th""Kittens")"th""Hedgehogs"]
  m "tr"[m("td""foo")m("td""bar")"td""baz"]
  m "tr"[m("td""32")m("td""45")"td""83"]
  m "tr"[
    m "td""onomatopoeia"
    m "td""schadenfreude"
    m "td""antidisestablishmentarianism"
  ]
]

Keywords

none

Install

npm i @nerevu/prettier-coffee

DownloadsWeekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

8.88 kB

Total Files

7

Last publish

Collaborators

  • avatar