Skip to content

Commit

Permalink
Check for pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Jul 12, 2024
1 parent 4537091 commit c173f67
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/csdl2markdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
const { spawnSync } = require("child_process");

if (spawnSync("pandoc", ["-v"]).error) {
console.error("pandoc required (https://github.com/jgm/pandoc/releases)");
process.exit(1);
}

/**
* Converts OData CSDL JSON to Github Flavored Markdown
*
Expand Down

0 comments on commit c173f67

Please sign in to comment.