ii.me-to-imgur

0.0.6 • Public • Published

II.ME-TO-IMGUR

This simple module allows you to convert is-inside.me url's to imgur url's!
Here is some example usage!

const imgur = require('ii.me-to-imgur')
async function test(){
let url = await imgur("https://salvage.is-inside.me/7EN6h1nr.png")
console.log(url)
}
test()

This would return a table! This table would look something like the following:

{
  width: 898,
  height: 535,
  id: 'vkAteyF',
  type: 'image/png',
  url: 'https://i.imgur.com/vkAteyF.png',
  size: 49652
}

Note: It can take upto a second to upload the image to imgur
Note: It creates a file with the current time EPOCH time with a .png at the end, once it is used it gets deleted automatically!
I hope this module is helpful!

This does not support mp4 or gif's yet

Package Sidebar

Install

npm i ii.me-to-imgur

Weekly Downloads

0

Version

0.0.6

License

ISC

Unpacked Size

4.13 kB

Total Files

4

Last publish

Collaborators

  • salvage_dev