Generate a UMD bundle from an NPM package.
Uses packd.now.sh as the bundler.
# using npx:
npx --quiet umd-cli lodash > lodash.umd.js
# or install directly:
npm install -g umd-cli
umd react@16 > react-16.umd.js
import umd from 'umd-cli'
// Fetch the UMD bundle into an in-memory buffer.
let promise = umd.fetch(name)
// Download the UMD bundle into a file.
let promise = umd.download(name, file)