This is the parser used for MicroPad.
You can find the docs here: https://getmicropad.com/docs/upad-parse.
npm install --save upad-parse
or yarn add upad-parse
const Notepad = require('upad-parse').Notepad;
let notepad = new Notepad('Test Notepad');
notepad.toXml().then(xml => console.log(xml));
import { Notepad } from 'upad-parse/dist';
let notepad = new Notepad('Test Notepad');
notepad.toXml().then(xml => console.log(xml));
<script type="text/javascript" src="https://unpkg.com/upad-parse@^7/dist/upad-parse.browser.js"></script>
<script type="text/javascript">
let notepad = new NPXParser.Notepad('Test Notepad');
notepad.toXml().then(xml => console.log(xml));
</script>
Generated using TypeDoc