consthastebin=require('hastebin.js');
consthaste=newhastebin({ /* url: 'hastebin.com */ });
constlink=haste.post('Helllo from hastebin.js!').then(link=>console.log(link));
// Will return a link such as https://hastebin.com/sofomuqifo.jsconstraw=haste.get('rejocivu').then(raw=>console.log(raw));
// Will return the contents of the haste you provide.