The official library to interact with JSPaste API


Keywords
hastebin, jspaste, paste, pastebin, tnfangel
License
MIT
Install
npm install jspaste@10.1.1

Documentation

jspaste

The official library to interact with JSPaste API

JS Standard

This package is deprecated

Due to organisation restructuring, this library is no longer functional. To continue using JSPaste you can refer an official list of available libraries here: https://github.com/jspaste/awesome-jspaste

Features

🔸 Right out the oven; Aligned to work with the latest and greatest features of ES2022 spec.
🔸 Compatibility; Native support for Bun and Node.js (ESM & CJS).
🔸 Ease of use; Gives you what you need when you need it, period.

Get started

Start building something awesome straight from your IDE, or if you prefer having all the documentation on a separate booklet, have a look at our documentation.

import { JSP } from 'jspaste'

const jsp = new JSP()
const { req, res } = await jsp.access('foobar')

console.info('Retrieved from:', req.resource) // Retrieved from: foobar
console.info('Retrieved data:', res.payload) // Retrieved data: Hello world!