WebAssets.jl

Manager for files based on URLs
Author joshday
Popularity
1 Star
Updated Last
8 Months Ago
Started In
June 2023

WebAssets

Build Status

WebAssets provides a simple API for managing local versions of files based on URLs.

Usage

using WebAssets: @add, @list, @remove

# Download file (if necessary) to scratchspace and return the path
plotlyjs = @add "https://cdn.plot.ly/plotly-2.24.0.min.js"


# List assets
@list()
# 1-element Vector{String}:
#  "https://cdn.plot.ly/plotly-2.24.0.min.js"


# Force a re-download
@update "https://cdn.plot.ly/plotly-2.24.0.min.js"

# Delete the downloaded file
@remove "https://cdn.plot.ly/plotly-2.24.0.min.js"

Used By Packages

No packages found.