0

Post text to hastebin

Function JavaScript 1 revisions 44 19 days ago 19 days ago
const { post } = require("snekfetch");
async run(input, extension = "js") {
    return post("https://hastebin.com/documents")
        .send(input)
        .then(res => `https://hastebin.com/${res.body.key}.${extension}`);
}