folder-picker
v0.0.3
Published
Enhance an HTML button so that it prompts the user to picka a local directory / folder and provides a reference to the chosen folder (FileSystemDirectoryHandle)
Downloads
16
Readme
folder-picker (📁⛏️)
<button 📁⛏️>Pick directory</button>Viewing Locally
Any web server that serves static files (html, css, js) will do but...
- Install git.
- Fork/clone this repo.
- Install node.
- Open command window to folder where you cloned this repo.
npm install
npm run serve
- Open http://localhost:8000/demo in a modern browser.
Importing in ES Modules:
import 'folder-picker/folder-picker.js';Using from CDN:
<script type=module crossorigin=anonymous>
import 'https://esm.run/folder-picker';
</script>