Skip to content

joshday/WebAssets.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"