notzer.ntz2icml

Convert Notzer to ICML

Usage no npm install needed!

<script type="module">
  import notzerNtz2icml from 'https://cdn.skypack.dev/notzer.ntz2icml';
</script>

README

Notzer → ntz2icml

Convert a Notzer-File to a ICML-File (InCopy/InDesign).

install

npm install notzer.ntz2icml --save

usage

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));

Infos