let hastebin = require("./hastebingen.js");

hastebin("Hello, world!", "js").then(function (link) {
    console.log(link); //https://hastebin.com/someurl.js
}).catch(function (error) {
    console.error(error);
});