Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fisker/set-input-files
- Owner: fisker
- License: mit
- Created: 2019-06-12T09:24:45.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T15:16:32.000Z (10 days ago)
- Last Synced: 2024-11-08T05:42:15.933Z (8 days ago)
- Language: JavaScript
- Size: 1.09 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 52
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
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>