Created
December 6, 2016 20:40
-
-
Save newvertex/c73ed69af68e1c2fbc6b7caf8ba089bb to your computer and use it in GitHub Desktop.
A simple image uploader module to upload from url to imgur
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let imgur = require('imgur'); | |
imgur.setAPIUrl('https://api.imgur.com/3/'); | |
function uploadIt(file) { | |
return imgur.uploadUrl(file); | |
} | |
module.exports.uploadIt = uploadIt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment