The official library to interact with JSPaste API
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
🔸 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.
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!