fis3-postprocessor-posthtml-beautify

3.1.0 • Public • Published

fis3-postprocessor-posthtml-beautify

a html formatter of fis3 based on posthtml-beautify.

styled with prettier npm npm npm

install

npm install --global fis3-postprocessor-posthtml-beautify

usage

// fis-conf.js
var config = {
  rules: {
    Indent: 2,
    eol: '\n',
    eof: '\n',
  },
}

fis.match('*.html', {
  postprocessor: fis.plugin('posthtml-beautify', config),
})

more rules: https://github.com/gitscrum/posthtml-beautify

default options

{
  "rules": {
    "indent": 2,
    "eol": "\n",
    "eof": "\n"
  }
}

NOTICE: this might change in future

links

license

MIT © fisker Cheung

/fis3-postprocessor-posthtml-beautify/

    Package Sidebar

    Install

    npm i fis3-postprocessor-posthtml-beautify

    Weekly Downloads

    0

    Version

    3.1.0

    License

    MIT

    Unpacked Size

    83.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • fisker