2.0.1 • Published 2 years ago

imagefirebase v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

What is this?

A package to upload image in firebase and returning the link used for sending it to other types of database with limited storage. Good use for MERN and MEAN stack developers

installation

npm i imagefirebase

example

import { uploadLink } from 'uploadlinkfirebase';

add your firebase project credentials for granting storage

const F = new uploadLink({
apiKey: "",
authDomain: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""

});

then..

< input type="file" onChange={F.setImageUpload}/ >

getting image link

console.log(F.Link)