# resilient-downloader

> Resiliant downloader for AWS S3

Latest version **0.0.5** (published 2017-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install resilient-downloader
pnpm add resilient-downloader
yarn add resilient-downloader
bun add resilient-downloader
```

## 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.0.5 |
| Published | 2017-09-05 |
| First published | 2017-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | timothee@fromsmash.com |
| Maintainers | noxs |
| Keywords | s3, downloader |

## Links

- npm: https://www.npmjs.com/package/resilient-downloader
- Repository: https://github.com/Noxs/ResiliantDownloader
- Homepage: https://github.com/Noxs/ResilientDownloader#readme
- Issues: https://github.com/Noxs/ResilientDownloader/issues
- npm.io page: https://npm.io/package/resilient-downloader

## Dependencies (1)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.91.0

## Recent versions

- 0.0.5 (latest) — 2017-09-05
- 0.0.4 — 2017-07-27
- 0.0.3 — 2017-07-27
- 0.0.1 — 2017-07-27

## README

# ResilientDownloader
 npm install resilient-downloader

# How it works

This module provide a simple way to download a file in memory from AWS S3.
This is not downloading all the files. It stop at the first download success.

# Usage

`var downloader = require('resilient-downloader');

var files = [
    {bucket: "my-bucket", region: "us-east-1", key: ""foobar},
    {bucket: "my-other-bucket", region: "us-east-2", key: ""foobar}
    /* as many as you want*/
];

downloader.downloadInMemory(files, function(err, data){
    /*data*/
    /*"file content foo bar"*/
});`

 OR

`downloader.downloadInMemory(files).then(function(data) {
    /*data*/
    /*"file content foo bar"*/
}, function(error){
    /*error*/
    /*"Error reason"*/
});`

// TODO
unit testing

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