fetchrelease
v0.0.3
Published
A simple nodejs module to query the github releases api, built using modern javascript.
Downloads
3
Readme
FetchRelease
A simple nodejs module to query the github releases api, built using modern javascript.
WIP: This module does not claim to be feature-complete or stable or anything. If you die because of using it, that's on you.
Example
const FetchRelease = require("./src/fetchrelease.js");
const api = new FetchRelease({
user: "ubports",
repo: "ubports-installer"
});
api.getRelease("latest").then((release) => {
console.log(release);
});
api.getAssetUrl("latest", "deb").then((url) => {
console.log(url);
});