<commit_before><commit_msg>add prettify util to examples<commit_after>'use strict';

var prettify = require('js-beautify').html;
var merge = require('mixin-deep');


/**
 * Format HTML using [js-beautify].
 *
 * @param  {String} `html` The HTML to beautify.
 * @param  {Object} `options` Options to pass to [js-beautify].
 * @return {String} Formatted string of HTML.
 */

module.exports = function(html, options) {
  return prettify(html, merge({
    indent_handlebars: true,
    indent_inner_html: true,
    preserve_newlines: false,
    max_preserve_newlines: 1,
    brace_style: 'expand',
    indent_char: ' ',
    indent_size: 2,
  }, options));
};
{'fraction_non_alphanumeric': 0.14088820826952528, 'fraction_numerical': 0.0030627871362940277, 'mean_word_length': 4.109375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5124347', 'n_tokens_mistral': 223, 'n_tokens_neox': 218, 'n_words': 57}