<commit_before>var fs = require('fs')
var path = require('path')

var posthtml = require('posthtml')

module.exports = function (path, options, callback) {
  fs.readFile(path, function (err, content) {
    if (err) return callback(new Error(err))
    var plugins = options
    var posthtml = posthtml(plugins)
      .process(content.toString())
      .then((result) => {
        console.log(result.html)
        return callback(null, result.html)
      })
  })
}<commit_msg>test(): init<commit_after>var fs = require('fs')
var path = require('path')

var posthtml = require('posthtml')

module.exports = function (path, options, callback) {
  fs.readFile(path, function (err, content) {
    if (err) return callback(new Error(err))
    var plugins = options.plugins
    var posthtml = posthtml(plugins)
      .process(content.toString())
      .then((result) => {
        return callback(null, result.html)
      })
  })
}
{'fraction_non_alphanumeric': 0.1475054229934924, 'fraction_numerical': 0.0, 'mean_word_length': 3.4805825242718447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2024914', 'n_tokens_mistral': 281, 'n_tokens_neox': 279, 'n_words': 70}