@abai/hastebindeprecated

Module for creating hastebins

Usage no npm install needed!

<script type="module">
  import abaiHastebin from 'https://cdn.skypack.dev/@abai/hastebin';
</script>

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