0.1.1 • Published 6 years ago

umd-cli v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

umd-cli

Generate a UMD bundle from an NPM package.

Uses packd.now.sh as the bundler.

# using npx:
npx umd-cli lodash > lodash.umd.js

# or install directly:
npm install -g umd-cli
umd react@16 > react-16.umd.js

API

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)