Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronshaf/dem
Download an ECMAScript module and its relative dependencies
https://github.com/aaronshaf/dem
Last synced: 21 days ago
JSON representation
Download an ECMAScript module and its relative dependencies
- Host: GitHub
- URL: https://github.com/aaronshaf/dem
- Owner: aaronshaf
- License: mit
- Created: 2018-10-04T19:02:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T17:10:20.000Z (almost 6 years ago)
- Last Synced: 2024-10-17T01:03:39.222Z (28 days ago)
- Language: JavaScript
- Homepage:
- Size: 90.8 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Download an ECMAScript module and its relative dependencies.
## Install
```bash
npm install -g @aaronshaf/dem
```## Usage
```
dem [options]Options:
-v, --version output the version number
-d, --destination directory to download to
-b, --bundle bundle and minify into one file
-h, --help output usage information
```## Examples
### Simple download
```bash
dem https://unpkg.com/[email protected]/lit-html.js
```This downloads:
```
lit-html.js
lib/default-template-processor.js
lib/parts.js
lib/directive.js
lib/dom.js
lib/part.js
lib/template-instance.js
lib/template.js
lib/template-result.js
lib/render.js
lib/template-factory.js
```### Download to a specific directory
```bash
dem https://unpkg.com/[email protected]/lit-html.js --destination vendor
```### Bundle and minify to a single file
```bash
dem https://unpkg.com/[email protected]/lit-html.js --bundle lit-html.min.js
```