README
@abai/hastebin
@abai/hastebin is an asynchronous module for creating hastebins https://yarn.pm/@abai/hastebin
Installation
yarn add @abai/hastebin
Usage
import hastebin from '@abai/hastebin';
hastebin('your code here', { extension: 'txt' /* not required */ })
.then((haste) => {
console.log(haste); // https://hastebin.com/example.txt
})
.catch((error) => {
console.error(error);
});
(c) 2019-present Aiden Bai