https://github.com/casperiv0/pastebin-api
A very simple pastebin npm package to interact with the pastebin api!
https://github.com/casperiv0/pastebin-api
hastebin npm-package pastebin pastebin-api
Last synced: 5 months ago
JSON representation
A very simple pastebin npm package to interact with the pastebin api!
- Host: GitHub
- URL: https://github.com/casperiv0/pastebin-api
- Owner: casperiv0
- License: mit
- Created: 2021-02-23T07:17:08.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T22:23:38.000Z (over 1 year ago)
- Last Synced: 2025-01-21T00:12:58.666Z (about 1 year ago)
- Topics: hastebin, npm-package, pastebin, pastebin-api
- Language: TypeScript
- Homepage: https://www.npm.im/pastebin-api
- Size: 962 KB
- Stars: 28
- Watchers: 1
- Forks: 7
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pastebin-api


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
```bash
# 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
```js
// 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](docs/README.md)
## 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](./LICENSE)