1.0.0 • Published 4 years ago
img_to_file_testing v1.0.0
Converting Image Src to File Obj
npm Package for converting Image src to File obj
Installation
Install via NPM:
npm install img_to_file
Usage
javascript
var FileObj = require("img_to_file");
let imageSrc = 'https://cdn.shopify.com/s/files/1/0234/8017/2591/products/7025152-dark-and-fire-wallpaper-hd-dekstop-pc.jpg'
let imageName = 'dark and fire wallpaper hd dekstop pc'
let newFile = FileObj.UrlToFileObj(imageSrc,imageName)
console.log("my file is >>>",newFile)
TypeScript
import * as FileObj from 'img_to_file';
let imageSrc = 'https://cdn.shopify.com/s/files/1/0234/8017/2591/products/7025152-dark-and-fire-wallpaper-hd-dekstop-pc.jpg'
let imageName = 'dark and fire wallpaper hd dekstop pc'
let newFile = FileObj.UrlToFileObj(imageSrc,imageName)
console.log("my file is >>>",newFile)
License
This project is licensed under the terms of the MIT license(
1.0.0
4 years ago