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)
- Host: GitHub
- URL: https://github.com/aleclarson/umd-cli
- Owner: aleclarson
- Created: 2018-11-09T15:07:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-12T00:59:33.000Z (over 5 years ago)
- Last Synced: 2025-03-14T20:39:47.921Z (over 1 year ago)
- Topics: cli, nodejs, npm, umd
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
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)
```