@proca/widget
Version:
Proca is an open-source campaign toolkit designed to empower activists and organisations in their digital advocacy efforts. It provides a flexible and customisable platform for creating and managing online petitions, email campaigns, and other forms of di
20 lines (17 loc) • 436 B
JavaScript
require("./dotenv.js");
const { pullCampaign, saveCampaign } = require("./config");
(async () => {
const argv = process.argv.slice(2);
if (!argv[0]) throw "need pullCampaign {name}";
try {
const d = await pullCampaign(argv[0]);
console.log(d);
if (d) {
const c = saveCampaign(d);
console.log("saved " + c);
}
} catch (e) {
console.error(e);
// Deal with the fact the chain failed
}
})();