@aaronshaf/dem 中文文档教程
下载 ECMAScript 模块及其相关依赖项。
Install
npm install -g @aaronshaf/dem
Usage
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 information
Examples
Simple download
dem https://unpkg.com/lit-html@0.12/lit-html.js
这个下载:
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
dem https://unpkg.com/lit-html@0.12/lit-html.js --destination vendor
Bundle and minify to a single file
dem https://unpkg.com/lit-html@0.12/lit-html.js --bundle lit-html.min.js
Download an ECMAScript module and its relative dependencies.
Install
npm install -g @aaronshaf/dem
Usage
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 information
Examples
Simple download
dem https://unpkg.com/lit-html@0.12/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
dem https://unpkg.com/lit-html@0.12/lit-html.js --destination vendor
Bundle and minify to a single file
dem https://unpkg.com/lit-html@0.12/lit-html.js --bundle lit-html.min.js
更多
你可能也喜欢
- 4sure-templates 中文文档教程
- 7ghost 中文文档教程
- @1o1w1/react-scripts 中文文档教程
- @21kb/react-vibration-hook 中文文档教程
- @360bid/ebid-waves 中文文档教程
- @42technologies/xlsx 中文文档教程
- @aakashsuryawanshi/angular-material-fileupload 中文文档教程
- @abcnews/story-lab-component-library 中文文档教程
- @abinavseelan/papers-please 中文文档教程
- @abstracter/atomic-release 中文文档教程