-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.qmd
44 lines (31 loc) · 910 Bytes
/
README.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: "esmdl"
format: gfm
engine: knitr
---
Download ESM and all ESM deps from CDN
Golang version of the spiffy:
- https://simonwillison.net/2023/May/2/download-esm/
- https://github.com/simonw/download-esm
b/c only monsters use Python.
## Install
```{bash install, eval=FALSE}
go install github.com/hrbrmstr/esmdl@latest
```
or grab a binary from the releases.
## Usage
```{bash usage, eval=FALSE}
NAME:
download-esm - Download ESM modules from npm and jsdelivr
USAGE:
download-esm [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--package value, -p value Package to download
--location value, -l value Location to save files (default: .)
--help, -h show help
```
```{bash run, eval=TRUE}
./esmdl --package "@observablehq/plot@latest" --location /tmp/mjs
```