This is a DPLA transpiler that turns DPLA code into JavaScript.
Demo: https://dpla.programmeruser.repl.co
import { run, transpile } from 'https://cdn.jsdelivr.net/gh/DPLA-S/DPLA/src/index.js';
const jsCode = transpile('&& your dpla code to be transpiled');
run('&& your dpla code to be run');