WebAssets provides a simple API for managing local versions of files based on URLs.
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"