https://github.com/joshday/webassets.jl
Manager for files based on URLs
https://github.com/joshday/webassets.jl
julia julia-language julialang
Last synced: 6 months ago
JSON representation
Manager for files based on URLs
- Host: GitHub
- URL: https://github.com/joshday/webassets.jl
- Owner: joshday
- License: mit
- Created: 2023-06-27T14:40:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T15:27:59.000Z (over 2 years ago)
- Last Synced: 2025-01-20T23:25:07.434Z (over 1 year ago)
- Topics: julia, julia-language, julialang
- Language: Julia
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebAssets
[](https://github.com/joshday/WebAssets.jl/actions/workflows/CI.yml?query=branch%3Amain)
**WebAssets** provides a simple API for managing local versions of files based on URLs.
# Usage
```julia
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"
```