Dependency-free Node.js module to interact with HasteBin servers.
Use the package manager npm to install node-hastebin:
npm install node-hastebin --production
const Hastebin = require("./index.js");
const hastebin = new Hastebin();
hastebin.write("Hello, World!").then((key) => {
hastebin.read(key).then((data) => {
console.log(data);
});
});
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.