# jr-drop-files

> Simple drop files

Latest version **0.0.2** (published 2019-06-21) · 0 weekly downloads

## Install

```sh
npm install jr-drop-files
pnpm add jr-drop-files
yarn add jr-drop-files
bun add jr-drop-files
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-06-21 |
| First published | 2019-06-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 40.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jorgerrubio |

## Links

- npm: https://www.npmjs.com/package/jr-drop-files
- npm.io page: https://npm.io/package/jr-drop-files

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 0.0.2 (latest) — 2019-06-21
- 0.0.1 — 2019-06-21

## README

# JrDropFiles

Simple drop files

## Installation

```
npm i jr-drop-files
```

## Usage

Include JrDropFilesModule into your main AppModule or in module where you will use it.

```
import { JrDropFilesModule } from 'jr-drop-files';

@NgModule({
    imports: [
        ...
        JrDropFilesModule
    ]
})
```

## Example
```
import { Component } from '@angular/core';
 
@Component({
  selector: 'app-home',
  template: `
      <jr-drop-files (dropChange)="changeDocuments($event)"></jr-drop-files>
  `
})
export class AppHomeComponent {
    
    public changeDocuments(fileList: FileList) {
        const files = Array.from(fileList);
        files.foreach(file => {
            console.log(file);
        });
    }
```

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