Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fisker/set-input-files

set HTMLInputElement files
https://github.com/fisker/set-input-files

Last synced: 6 days ago
JSON representation

set HTMLInputElement files

Awesome Lists containing this project

README

        

# set-input-files

[![gzip size](http://img.badgesize.io/https://unpkg.com/set-input-files/dist/set-input-files.min.mjs?compression=gzip&label=gzip%20size&style=flat-square)](https://unpkg.com/set-input-files/dist/)
[![downloads](https://img.shields.io/npm/dm/set-input-files.svg?style=flat-square)](https://www.npmtrends.com/set-input-files)
[![module formats: umd, cjs, and es](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20es-green.svg?style=flat-square)](https://unpkg.com/set-input-files/dist/)
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/set-input-files/badge)](https://www.jsdelivr.com/package/npm/set-input-files)

[![Build Status](https://img.shields.io/travis/fisker/set-input-files.svg?style=flat-square)](https://travis-ci.org/fisker/set-input-files)
[![Code Coverage](https://img.shields.io/codecov/c/github/fisker/set-input-files.svg?style=flat-square)](https://codecov.io/github/fisker/set-input-files)
[![MIT License](https://img.shields.io/npm/l/set-input-files.svg?style=flat-square)](https://github.com/fisker/set-input-files/blob/master/license)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

> set HTMLInputElement files

## Install

```sh
yarn add set-input-files
```

## Usage

```html

import setInputFiles from 'https://unpkg.com/set-input-files?module'

setInputFiles(input, [file])

setInputFiles(input, [file])

```

## API

setInputFiles(input[, files])

### input

`HTMLInputElement`[type="file"]

### files

Array<file>