Using in a Node.js Application - CSSLint/csslint GitHub Wiki
To run CSSLint from within a Node.js application, use the following:
var CSSLint = require('csslint').CSSLint;
var result = CSSLint.verify("h1 { color: red; }");
result.messages.forEach(function (message) {
console.log("%s (line %d, col %d): %s", message.type, message.line, message.col, message.message);
});