# big-little-file

> Poorly documented utility for efficiently uploading large files via authenticated and/or pre-signed URLs

Latest version **0.2.2** (published 2020-10-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install big-little-file
pnpm add big-little-file
yarn add big-little-file
bun add big-little-file
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2020-10-15 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 60.9 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Rees Byars |
| Maintainers | rsby |
| Keywords | s3, multipart |

## Links

- npm: https://www.npmjs.com/package/big-little-file
- npm.io page: https://npm.io/package/big-little-file

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.19.0

## Recent versions

- 0.2.2 (latest) — 2020-10-15
- 0.2.1 — 2020-09-28
- 0.2.0 — 2020-02-24
- 0.1.9 — 2020-01-17
- 0.1.8 — 2020-01-17
- 0.1.7 — 2019-10-23
- 0.1.6 — 2019-10-22
- 0.1.5 — 2019-10-21
- 0.1.4 — 2019-10-16
- 0.1.3 — 2019-10-16
- 0.1.2 — 2019-10-16
- 0.1.1 — 2019-10-16
- 0.1.0 — 2019-10-16

## README

# big-little-file

A Javascript utility for uploading both small and huge files. 

See the [example-app README](example-app/README.md) and the [example code](example-app/src/App.js), or follow these directions:

Add to your `package.json`:

    "big-little-file": "^0.2.0"

And then in your React component or action:

    let bigLittle = await BigLittleFile.create(
        'https://cdsdeva.catalyticds.com/yacht/api/data/files',
        `Bearer ${this.state.jwt}`,
        file,
        {
            name: file.name,
            group: 'My Upload Test Files'
        }
    );
    
    bigLittle.upload(progressData => {
        console.log(progressData.uploadedBytes + " completed of " + progressData.totalBytes);
    }).then(fileInfo => {
        console.log("File fully uploaded to: " + fileInfo.path);
    }).catch(err => {
        console.log(err);
    });

---
_Source: https://npm.io/package/big-little-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
