npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

@abai/hastebin

0.0.1 • Public • Published

@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

install

npm i @abai/hastebin

Downloadsweekly downloads

1

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability