access-sniff
Version:
A node/iojs library & CLI for HTML_Codesniffer
19 lines (15 loc) • 430 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
var NormalizeOutput = function NormalizeOutput(stringOutput) {
var fileMessages = stringOutput.split('\n');
fileMessages = fileMessages.filter(function (message) {
return message;
});
fileMessages = fileMessages.map(function (message) {
return JSON.parse(message);
});
return fileMessages;
};
exports.default = NormalizeOutput;
;