DPLA is a custom programming language transpiler that converts DPLA source code into JavaScript. Version 1.0.0 provides core functions for transpilation and execution. It is distributed as a single JavaScript module for use in browsers via CDN. The project is hosted on GitHub with a live demo, but lacks npm distribution, TypeScript definitions, or a dedicated package. Key differentiators: domain-specific language transpiler, minimal API (two functions), and browser-first usage.
npm install dpla-langNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use transpile and run functions to convert and execute DPLA code in a browser environment.
Use the GitHub CDN URL for imports. Do not install via npm.
Create a declaration file (.d.ts) for the module.
Always transpile code and inspect the resulting JavaScript before relying on run() for critical applications.
Replace import source with the correct GitHub CDN URL: import { run } from 'https://cdn.jsdelivr.net/gh/DPLA-S/DPLA/src/index.js'Verify that the import URL is correct and that the module is served with correct MIME type. Use dynamic import if necessary.
Ensure you are using named import: import { transpile } from '<correct url>'No dependency data recorded yet.