Get the latest repository version. Written in Deno Fresh 🦕
- for public repos ->
/:user/:repo
- for private repos ->
/:user/:repo?token=TOKEN
- you can add
?no-v=true
query var to receive release withoutv
char
fetch("https://get-latest.deno.dev/denoland/deno")
.then(res => res.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
const res = await fetch("https://get-latest.deno.dev/denoland/deno");
const data = await res.text();
console.log(data);
package main
import (
"github.com/botwayorg/get-latest/api"
)
func main() {
latest := api.LatestWithArgs("denoland/deno", "GITHUB_TOKEN", false)
// ☝ repo name ☝ github token ☝ remove 'v' character from tag
println(latest)
}
And of course you can use it with other languages 🤝
Apache-2.0 License - License