7.0.0 • Published 7 months ago

pastebin-api v7.0.0

Weekly downloads
211
License
MIT
Repository
github
Last release
7 months ago

pastebin-api

License Downloads

A very simple npm package to interact with the pastebin api.

Features

  • Create pastes with all the available API data
  • Fetch the raw contents of a paste
  • Fetch pastes from the authenticated user via a user login
  • Delete pastes from the authenticated user via a user login

Installation

# npm
npm install pastebin-api

# Yarn
yarn add pastebin-api

# pnpm
pnpm add pastebin-api

Note > pastebin-api requires node.js version 14 or higher.

Usage

// src/main.js
import { PasteClient, Publicity, ExpireDate } from "pastebin-api";
// const { PasteClient, Publicity, ExpireDate } = require("pastebin-api"); // using CommonJS

// Tip: load dev key from a `.env` file
const client = new PasteClient("DEV_KEY_HERE");

/* ... */

Documentation

You can checkout the documentation here

Support

All stars/forks are appreciated! ⚡

Feel free to open a pull request with a new feature.

Made with ❤️ and TypeScript!

License

MIT © Casper Iversen

7.0.0

7 months ago

6.1.0

9 months ago

6.0.0

9 months ago

5.1.6

1 year ago

5.1.5

2 years ago

5.1.4

2 years ago

5.1.3

2 years ago

5.1.2

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

4.0.1

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

4.0.0

2 years ago

3.0.2

2 years ago

2.6.1

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.6.0

2 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.6

3 years ago

2.3.4

3 years ago

2.3.5

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.2

3 years ago

2.0.4-dev

3 years ago

2.1.1

3 years ago

2.0.4

3 years ago

2.1.0

3 years ago

2.1.0-dev

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago