An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# WebAssets

[![Build Status](https://github.com/joshday/WebAssets.jl/actions/workflows/CI.yml/badge.svg?branch=main)](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"
```