The current version of Paja is 0.0.3, which is an alpha version.
See Paja's webpage for more detailed documentation. Below follows a very brief excerpt of that documentation
Because Paja is a wrapper around pandoc, pandoc obviously is a requirement for Paja. Install Paja with npm:
npm install paja
The obligatory "hello world" program with paja:
const paja = require("paja"); const INPUT = ` > Hello World! from **Paja**`; const markdown2html = paja.Pandoc.converter().from("markdown").to("html"); markdown2html.run(INPUT, console.log);
which will output:
<blockquote> <p>Hello World!</p> </blockquote> <p>from <strong>Paja</strong></p>
For more examples, see the documentation or the examples subdirectory.