Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rip3rs/react-native-s3-etag-file-integrity
Module to read a local file and find the ETAG of the downloaded file from Amazon.
https://github.com/rip3rs/react-native-s3-etag-file-integrity
etag react-native s3-etag
Last synced: about 2 months ago
JSON representation
Module to read a local file and find the ETAG of the downloaded file from Amazon.
- Host: GitHub
- URL: https://github.com/rip3rs/react-native-s3-etag-file-integrity
- Owner: rip3rs
- License: mit
- Created: 2018-12-13T16:58:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T09:48:30.000Z (almost 6 years ago)
- Last Synced: 2024-11-14T04:55:58.289Z (2 months ago)
- Topics: etag, react-native, s3-etag
- Language: TypeScript
- Homepage: https://github.com/rip3rs/react-native-s3-etag-file-integrity
- Size: 363 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native s3 Etag File Integrity
Module to read a local file and find the ETAG of the downloaded file from **Amazon**.
**NOTE**
Currently it isn't tested on IOS, it should not work due to the root directory being specific to Android.
**NOTE**
This uses module [react-native-fs](https://www.npmjs.com/package/react-native-fs)
**NOTE**
**Depending on tablet** and on Large files THIS WILL TAKE TIME!
As I have to check the integrity of downloaded file on a slow and old android tablet it takes a while...## Install
`npm i react-native-s3-etag-file-integrity`
or
`yarn add react-native-s3-etag-file-integrity`
## Usage
###### You can find the etag and size through a HEAD request to the file at amazon.
```javascript
s3eTag('Path to file without the root folder', 'Etag', 'Size of the file')
.then(res => console.log(res))
.catch(err => console.log(err));
```## Bugs
If you find a bug create a issue on the repo.