# improved-file-input

> A simple file input library to expand the functionality of the HTML5 file input

Latest version **0.1.8** (published 2021-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install improved-file-input
pnpm add improved-file-input
yarn add improved-file-input
bun add improved-file-input
```

## 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.8 |
| Published | 2021-05-11 |
| First published | 2019-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | therealpadster |
| Keywords | input, file, therealpadster |

## Links

- npm: https://www.npmjs.com/package/improved-file-input
- Repository: https://github.com/therealpadster/improved-file-input
- Homepage: https://github.com/therealpadster/improved-file-input#readme
- Issues: https://github.com/therealpadster/improved-file-input/issues
- npm.io page: https://npm.io/package/improved-file-input

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.8 (latest) — 2021-05-11
- 0.1.7 — 2020-07-20
- 0.1.6 — 2020-03-04
- 0.1.5 — 2020-03-04
- 0.1.4 — 2020-02-19
- 0.1.3 — 2020-01-09
- 0.1.2 — 2019-12-30
- 0.1.1 — 2019-12-13
- 0.1.0 — 2019-12-13

## README

# improved-file-input

[![npm (scoped)](https://img.shields.io/npm/v/improved-file-input.svg)](https://www.npmjs.com/package/improved-file-input)
![npm bundle size](https://img.shields.io/bundlephobia/min/improved-file-input?label=minified%20size)

A simple file input library to expand the functionality of the HTML5 file input.

## Install

```
$ npm install improved-file-input
```

## Usage

```js
const ifi = require('improved-file-input');
const attachments = document.querySelector('input[name="attachments"]');
const fileInput = new ifi(attachments, 5);

document.getElementById('demoForm').addEventListener('submit', (e) => {
  e.preventDefault();

  console.log('fileInput.files:', fileInput.files);
  //=> 'fileInput.files:' (2) [File, File]
});
```

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