🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

img-to-url

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

img-to-url

Upload Img to Url

1.7.0
latest
Source
npm
Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

Image to Url Converter

Ubah gambar menjadi url dengan instan!, gambarmu akan bisa diakses melalui url yang sudah dikonversi nantinya!

Di hosting menggunakan EzGif.

  • Ekstensi yang didukung : GIF, JPG, PNG, BMP, WebP, APNG, HEIC, FLIF, AVIF, MNG
  • Batas maksimal ukuran file : 50MB

Installation

Install with npm:

$ npm install img-to-url

With require:

const img2url = require("img-to-url");

Usage

Example :

see example.js for details.

const getUrl = async () => {
    const result = await img2url.upload('./your/path/image.png').then(x => x)
    console.log(result)
    /* Result :
    {
      ok: true,                                                         
      code: 200,
      result: {
        url: 'https://im.ezgif.com/tmp/<HASH-ID>.png',
        mime: 'image/png',
        size: 245844
      },
      HostedBy: 'https://ezgif.com',
      CreatedBy: 'https://github.com/zaadevofc'
    }
    */
}

Testing

Install dependencies:

npm install

Run tests:

npm run test

License

Code released under the MIT license.

Keywords

media

FAQs

Package last updated on 14 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts