Convert a Notzer-File to a ICML-File (InCopy/InDesign).
npm install notzer.ntz2icml --save
var fs = require("fs");
const ntz2icml = require("notzer.ntz2icml");
let ntz = fs.readFileSync("./data/index.ntz.json");
ntz = JSON.parse(ntz);
// parse ntz to icml
let ntz2icml = new Ntz2icml();
fs.writeFileSync("./data/index.icml", ntz2icml.convert(ntz));