Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

choose-files

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choose-files

Prompt the user to select files, then pass them to a callback.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
decreased by-64.18%
Maintainers
3
Weekly downloads
 
Created
Source

choose-files

NPM travis-ci

Prompt the user to select files, then pass the File objects to a callback. If the user cancels file selection, an empty Array is returned.

Works in modern browsers, Cordova, Electron, etc.


Usage

import chooseFiles from 'choose-files';

chooseFiles( files => {
	// `files` is an Array of File objects

	// Example - print filenames:
	let names = files.map( file => file.name);
	console.log(names);
});

License

BSD 3-Clause

Keywords

FAQs

Package last updated on 05 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc