@nepaltechinnov/img-to-url
v2.1.0
Published
A package that converts image or pdf file upto 32MB to url.
Downloads
58
Readme
Usage
npm i @nepaltechinnov/img-to-url
import imgToUrl from "@nepaltechinnov/img-to-url";
suppose you have a file in input>type:file
const urls = await imageToUrl(file);
Output: (in urls)
{
"originalUrl": "https://i.ibb.co/6B7kXxq/tony-frost-e-Iu-IK1zbg-Bs-unsplash.jpg",
"mediumUrl": "https://i.ibb.co/0tRxsSz/tony-frost-e-Iu-IK1zbg-Bs-unsplash.jpg",
"thumbnailUrl": "https://i.ibb.co/Hdfjhs9/tony-frost-e-Iu-IK1zbg-Bs-unsplash.jpg"
}