easy-hastebin
v1.2.3
Published
Simple NPM module for generating hasteb.in links
Downloads
31
Readme
easy-hastebin
Simple NPM module for generating hasteb.in links.
Motivation
I prefer hasteb.in to hastebin.com and I didn't like the fact that other modules used snekfetch (now deprecated).
Installation
npm i easy-hastebin
Usage
const haste = require('easy-hastebin');
const myCrazyProgram = f=n=>n>1?f(n-1)+f(n-2):n;
// js file extension (default)
haste(myCrazyProgram).then(console.log);
// custom file extension
haste(myCrazyProgram, 'cpp').then(console.log);
// plaintext (no file extension)
haste(myCrazyProgram, null).then(console.log);
License
• MIT © 2019 Sam Gilburg