A small NPM package that dynamically injects the Lumitra.js script from your CDN.
Inspired by how @stripe/stripe-js loads js.stripe.com/v3
.
npm install lumitra-js
# or
pnpm add lumitra-js
import { loadLumitra } from "lumitra-js";
(async () => {
const lumitra = await loadLumitra();
// e.g. lumitra.initializeLumitraSession(...) etc.
})();
If you do major changes, create a new path in your CDN (e.g. /sdk/v2/lumitra.js
) and update the URL in src/index.ts
.
Proprietary. All rights reserved by Lumitra.