1.0.1 • Published 4 years ago

paste.ee v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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.