paste.ee
v1.0.1
Published
This package allows you to easily post to paste.ee and recieve the id and link.
Readme
How to use
const paste = require("paste.ee")
// Returns promise with id and link property
let posted = await paste("<paste-contents-here>", "<api-key-here>", "<optional-title-here>")
// Text
console.log(posted.link) // "https://paste.ee/p/paste-id"
// Raw
console.log(`https://paste.ee/r/${posted.id}`)If the upload fails, your promise will not resolve.
