Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.keys(files).forEach(function(file){
debug('checking file: %s', file);
if (!isHtml(file)) return;
var data = files[file];
debug('applying typography rules to file: %s', file);
var str = richtypo.richtypo(data.contents.toString(), rules);
data.contents = new Buffer(str);
files[file] = data;
});
};