A little package that can upload files and text to hastebin.
npm install hastebin-savejs
const Hastebin = require("hastebin-save");
Hastebin.upload("cow", link => {
console.log("https://hastebin.com/" + link)
});
`
##### But it would be different if we wanted to upload a file, so let's say you have this really cool javascript code you want to show everyone on your Discord server, but it is way too long to type into the Discord chat channel. We have the perfect solution for you, I'm going to show you how:
`js
const Hastebin = require("hastebin-save");
Hastebin.uploadFile("./mycooljavascriptcode.js", link => {
console.log("https://hastebin.com/" + link)
});
``