UNPKG

@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

17 lines (14 loc) 353 B
#!/usr/bin/node require("./dotenv.js"); const { pushCampaign } = require("./config"); (async () => { const argv = process.argv.slice(2); if (!argv[0]) throw "need pushCampaign {name}"; try { const d = await pushCampaign(argv[0]); console.log(d); } catch (e) { console.error(e); // Deal with the fact the chain failed } })();