Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

aidenybai/hastebin

Repository files navigation

@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

Releases

No releases published

Packages

No packages published