# @taishikato/firebase-storage-uploader

> A library to upload a image on Firebase Storage

Latest version **1.1.1** (published 2020-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @taishikato/firebase-storage-uploader
pnpm add @taishikato/firebase-storage-uploader
yarn add @taishikato/firebase-storage-uploader
bun add @taishikato/firebase-storage-uploader
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-04-08 |
| First published | 2020-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | taishikato |
| Maintainers | taishikato |
| Keywords | firebase, firebase storage, Uploader, image |

## Links

- npm: https://www.npmjs.com/package/@taishikato/firebase-storage-uploader
- Repository: https://github.com/taishikato/firebase-storage-uploader
- Homepage: https://github.com/taishikato/firebase-storage-uploader#readme
- Issues: https://github.com/taishikato/firebase-storage-uploader/issues
- npm.io page: https://npm.io/package/@taishikato/firebase-storage-uploader

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2020-04-08
- 1.1.0 — 2020-04-08
- 1.0.4 — 2020-04-08
- 1.0.3 — 2020-04-08
- 1.0.2 — 2020-04-07
- 1.0.1 — 2020-04-07
- 1.0.0 — 2020-04-07

## README

# @taishikato/firebase-storage-uploader

A library to upload a image on Firebase Storage📸

![npm (scoped)](https://img.shields.io/npm/v/@taishikato/firebase-storage-uploader)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/@taishikato/firebase-storage-uploader?label=minified%20size)

## Install
With npm
```shell
$ npm i @taishikato/firebase-storage-uploader
```
With yarn
```shell
$ yarn add @taishikato/firebase-storage-uploader
```

## Usage

```javascript
// CommonJS
const uploadImage = require('@taishikato/firebase-storage-uploader').default;
// ES6
import uploadImage from '@taishikato/firebase-storage-uploader';

import firebase from 'firebase/app'
import 'firebase/storage'
if (!firebase.apps.length) {
  firebase.initializeApp({
    apiKey: <apiKey>,
    authDomain: <authDomain>,
    databaseURL: <databaseURL>,
    projectId: <projectId>,
    storageBucket: <storageBucket>,
    messagingSenderId: <messagingSenderId>,
    appId: <appId>,
    measurementId: <measurementId>
  })
}

const imageUrl = 'data:image/jpeg;base64,/9j/4gIcSUNDX1BST0ZJTEUA…'

uploadImage('users/John.png', imageUrl, firebase).then(result => {
  console.log(result) // You can access to your image file via this URL of firebase storage
})
```

---
_Source: https://npm.io/package/@taishikato/firebase-storage-uploader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
