# angular-tus-io

> TUS.io client using AngularJS only

Latest version **0.1.1** (published 2015-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-tus-io
pnpm add angular-tus-io
yarn add angular-tus-io
bun add angular-tus-io
```

## 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.1.1 |
| Published | 2015-06-03 |
| First published | 2015-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vaclav Klecanda |
| Maintainers | vencax |
| Keywords | tus, upload, angular |

## Links

- npm: https://www.npmjs.com/package/angular-tus-io
- Repository: https://github.com/vencax/angular-tus-io/
- npm.io page: https://npm.io/package/angular-tus-io

## Recent versions

- 0.1.1 (latest) — 2015-06-03

## README

# angular-tus-io

[TUS.io](http://www.tus.io/) client with angular as the only dependency.

## installation

bower install angular-tus-io

## features

- HTML5 FileAPI used
- per chunk uploads
- chunk retry mechanism

### planned

- CRC of chunks
- variable chunk size

## example of usage

```javascript
var _onProgress = function(bytesUploaded) {
  percentage = (bytesUploaded / $scope.file.size * 100).toFixed(2);
  $scope.file.progress = percentage
};

var _onError = function(error) {
  $scope.file.status = 'failed: ' + error;
};

var _onDone = function() {
  $scope.file.status = 'uploaded';
};

var uploader = new BasicTUS.Client($scope.file, options);
uploader.then(_onDone, _onError, _onProgress);
```

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