2.1.3 • Published 7 years ago
@aaronshaf/dem v2.1.3
Download an ECMAScript module and its relative dependencies.
Install
npm install -g @aaronshaf/demUsage
dem [options] <source>
Options:
-v, --version output the version number
-d, --destination <directory> directory to download to
-b, --bundle <file> bundle and minify into one file
-h, --help output usage informationExamples
Simple download
dem https://unpkg.com/lit-html@0.12/lit-html.jsThis 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.jsDownload to a specific directory
dem https://unpkg.com/lit-html@0.12/lit-html.js --destination vendorBundle and minify to a single file
dem https://unpkg.com/lit-html@0.12/lit-html.js --bundle lit-html.min.js