JSPM

  • Created
  • Published
  • Downloads 54
  • Score
    100M100P100Q64270F
  • License MIT

a html formatter of fis3 based on js-beautify

Package Exports

  • fis3-postprocessor-html

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fis3-postprocessor-html) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

fis3-postprocessor-html a css formatter of fis3 based on js-beautify

npm npm npm

usage

$ npm i -g fis3-postprocessor-html
// fis-conf.js
var config = {
  "indent_size": 4,
  "indent_char": " ",
  "eol": "\n",
  "indent_level": 0,
  "indent_with_tabs": false,
  "preserve_newlines": true,
  "max_preserve_newlines": 10,
  "jslint_happy": false,
  "space_after_anon_function": false,
  "brace_style": "collapse",
  "keep_array_indentation": false,
  "keep_function_indentation": false,
  "space_before_conditional": true,
  "break_chained_methods": false,
  "eval_code": false,
  "unescape_strings": false,
  "wrap_line_length": 0,
  "wrap_attributes": "auto",
  "wrap_attributes_indent_size": 4,
  "end_with_newline": false
};

fis.match('*.html}', {
  postprocessor: fis.plugin('html', config)
});

fis3: [http://fis.baidu.com/]

js-beautify: [https://github.com/beautify-web/js-beautify]