dynamic-umd-loader
v1.1.3
Published
Load JavaScript UMD Module From Online URL
Downloads
3
Readme
dynamic-umd-loader
see type definitions here
Usage
npm i dynamic-umd-loader
Example
load dayjs
from jsdelivr
import loader from 'dynamic-umd-loader';
loader('https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js', 'dayjs').then(
(dayjs) => {
console.log(dayjs().from());
}
);