xxxxxxxxxx
//First search cdn for the npm package, eg. search "Lodash CDN"
//Then use that URL as follows
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js';
document.head.appendChild(script);