Manual setup
cd agentlet-corenpm installnpm run buildThis creates:
dist/agentlet-core.js: development version (IIFE global, also usable viarequire('agentlet-core'))dist/agentlet-core.esm.js: ES module version, used by bundlers thatimportthe packagedist/agentlet-core.min.js: production version. Since 2.4.0 it no longer contains SheetJS, html2canvas and pdf.js: they are the separate filesdist/agentlet-xlsx.min.js,dist/agentlet-html2canvas.min.jsanddist/agentlet-pdfjs.min.js, loaded on first use from the folder of the core script. Serve them together, see Installdist/agentlet-core.full.min.js: since 2.4.0, the core with all three libraries inlined, as one filedist/pdf.worker.min.mjs,dist/cmaps/anddist/standard_fonts/: what pdf.js fetches while it converts a PDFdist/bookmarklet.js: bookmarklet version (carries all three libraries inline)dist/bookmarklet.html: installation page
From here, either:
- Open
dist/bookmarklet.htmlto install the bookmarklet in your browser, then click it on a page you want to augment. - Reference
dist/agentlet-core.jsordist/agentlet-core.esm.jsfrom your own build, and constructAgentletCoreyourself. See Public API for the constructor configuration.