spago-legacy
Version:
[DEPRECATED] 🍝 PureScript package manager and build tool powered by Dhall and package-sets
10 lines (7 loc) • 365 B
JavaScript
;
const fetch = require("make-fetch-happen");
const tar = require("tar");
const version = "0.21.0";
const platform = { win32: "Windows", darwin: "macOS" }[process.platform] || "Linux";
const url = `https://github.com/purescript/spago-legacy/releases/download/${version}/${platform}.tar.gz`
fetch(url).then(res => res.body.pipe(tar.x({ "C": './' })));