mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
21 lines
443 B
JavaScript
21 lines
443 B
JavaScript
"use strict";
|
|
|
|
var markdownlint = require("../lib/markdownlint");
|
|
|
|
var options = {
|
|
"files": [ "good.md", "bad.md" ]
|
|
};
|
|
|
|
// Uses result.toString for pretty formatting
|
|
markdownlint(options, function callback(err, result) {
|
|
if (!err) {
|
|
console.log(result.toString());
|
|
}
|
|
});
|
|
|
|
// Examines the result object directly
|
|
markdownlint(options, function callback(err, result) {
|
|
if (!err) {
|
|
console.dir(result, { "colors": true });
|
|
}
|
|
});
|