# hastebin-save

> A little package that can upload files and text to hastebin.

Latest version **1.2.2** (published 2020-09-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install hastebin-save
pnpm add hastebin-save
yarn add hastebin-save
bun add hastebin-save
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2020-09-16 |
| First published | 2020-09-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ecolipsy, Games |
| Maintainers | gamesawayhd, theinteger22 |

## Links

- npm: https://www.npmjs.com/package/hastebin-save
- npm.io page: https://npm.io/package/hastebin-save

## Recent versions

- 1.2.2 (latest) — 2020-09-16
- 1.2.1 — 2020-09-16
- 1.2.0 — 2020-09-16
- 1.1.0 — 2020-09-16
- 1.0.0 — 2020-09-16

## README

# hastebin-save
##### Hastebin-save is a module created by TheInteger with help of Games that can save text and files to hastebin, not only is it lightweight but also easy to use.

# How to use:
##### Let's say we want to upload the word "cow" to hastebin, we can do so by using the function "upload()". heres an example:
```js
const Hastebin = require("hastebin-save");
Hastebin.upload("cow", link => {
    console.log("https://hastebin.com/" + link)
});
```
##### But it would be different if we wanted to upload a file, so let's say you have this really cool javascript code you want to show everyone on your Discord server, but it is way too long to type into the Discord chat channel. We have the perfect solution for you, I'm going to show you how:
```js
const Hastebin = require("hastebin-save");
Hastebin.uploadFile("./mycooljavascriptcode.js", link => {
    console.log("https://hastebin.com/" + link)
});
```
##### Now you can just send the link to your buddies at discord! ;)

---
_Source: https://npm.io/package/hastebin-save · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
