lumitra-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

lumitra-js

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.

Installation

npm install lumitra-js
# or
pnpm add lumitra-js

Usage

import { loadLumitra } from "lumitra-js";

(async () => {
  const lumitra = await loadLumitra();
  // e.g. lumitra.initializeLumitraSession(...) etc.
})();

Versioning

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.

License

Proprietary. All rights reserved by Lumitra.

Readme

Keywords

none

Package Sidebar

Install

npm i lumitra-js

Weekly Downloads

2

Version

1.0.2

License

UNLICENSED

Unpacked Size

11.6 kB

Total Files

10

Last publish

Collaborators

  • kevinpierce