@taotao7/file-tree
v0.0.4
Published
Returns all files in the selected directory after selection
Downloads
1
Maintainers
Readme
File Explorer Library
A simple JavaScript library that allows users to select a folder and returns all the files within the selected directory.
[!WARNING] This library supports the following browsers: "Chrome >= 86", "Edge >= 86", "Opera >= 72"
Features
- Select a folder using a file input dialog.
- Retrieve a list of all files in the selected directory.
- Supports various file types.
Installation
You can include the library in your project by using npm:
npm install @taotao7/file-tree
example
import {FileEntry},selectDirectoryAndGetFiles from '@taotao7/file-tree';
const main = async () => {
const files = await selectDirectoryAndGetFiles();
console.log(files)
}