/haste-pls

An npm package to upload code to a hastebin

Primary LanguageJavaScriptMIT LicenseMIT

haste-pls

An npm package to upload code to a pastbin.

Example

const hastePls = require("haste-pls");
const bin = new hastePls()
const postBin = async (content) => {
    bin.setContent(content);
    const res = await bin.post();
    console.log(res);
}  

postBin("hello hastebin from haste-pls");