swc-css-fonts-dl

Crates.ioswc-css-fonts-dl
lib.rsswc-css-fonts-dl
version0.0.3
sourcesrc
created_at2024-03-08 10:39:44.447656
updated_at2024-03-08 13:38:35.166635
descriptionDownload remote fonts referenced in stylesheets
homepagehttps://github.com/tonywu6/swc-css-fonts-dl
repositoryhttps://github.com/tonywu6/swc-css-fonts-dl
max_upload_size
id1166725
size84,312
Tony Wu (tonywu6)

documentation

https://docs.rs/swc-css-fonts-dl

README

swc-css-fonts-dl

Download remote fonts referenced in stylesheets. Powered by SWC.

cargo install swc-css-fonts-dl --git https://github.com/tonywu6/swc-css-fonts-dl
Usage: swc-css-fonts-dl [OPTIONS]

Options:
  -c, --config <FILE>              Path to a YAML config file; defaults to .swc-css-fonts-dl.config.yaml in the working directory
      --concurrency <CONCURRENCY>  Maximum number of concurrent downloads [default: 10]
  -h, --help                       Print help
out-dir: ./dist
sources:
  - from: https://rsms.me/inter/inter.css
    into: inter.css
  - from: https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;600;700;900&display=swap
    into: noto-sans-sc+variable.css
    # Google Fonts serves different stylesheets based on User-Agent capabilities
    user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Commit count: 0

cargo fmt