1

Post text to hastebin

Function JavaScript 1 revisions 268 6 months ago 6 months 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}`);
}