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