csstree / validator

CSS validator based on CSSTree
MIT License
65 stars 14 forks source link

allow reporter file as -r option #14

Closed Rendez closed 2 years ago

Rendez commented 6 years ago

Hi there, what do you think about passing custom reporter modules?

$ csstree-validator test/fixture/css/style.css -r catReporter.js
module.exports = function catReporter(data) {
    return `
         /\\_/\\
        / o o \\
  /~____  =-= /
 (______)__m_m)
`;
}
lahmatiy commented 2 years ago

Thank you for your effort! PR is too old, so I was unable to apply the changes. But just released 3.0.0 with custom reporters on board (see readme for details).