An open API service indexing awesome lists of open source software.

https://github.com/aleclarson/umd-cli

Generate UMD bundles from NPM packages (using https://packd.now.sh)
https://github.com/aleclarson/umd-cli

cli nodejs npm umd

Last synced: about 2 months ago
JSON representation

Generate UMD bundles from NPM packages (using https://packd.now.sh)

Awesome Lists containing this project

README

          

# umd-cli

Generate a UMD bundle from an NPM package.

Uses [packd.now.sh](https://github.com/Rich-Harris/packd) as the bundler.

```sh
# 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
```

## API

```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)
```