browser-fs-access
Advanced tools
Comparing version 0.20.0 to 0.20.1
{ | ||
"name": "browser-fs-access", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"description": "File System Access API with legacy fallback in the browser.", | ||
@@ -5,0 +5,0 @@ "browser": "./dist/index.js", |
@@ -56,2 +56,17 @@ # Browser-FS-Access | ||
// Open files of different MIME types. | ||
const blobs = await fileOpen([ | ||
{ | ||
description: 'Image files', | ||
mimeTypes: ['image/jpg', 'image/png', 'image/gif', 'image/webp'], | ||
extensions: ['.jpg', '.jpeg', '.png', '.gif', '.webp'], | ||
multiple: true, | ||
}, | ||
{ | ||
description: 'Text files', | ||
mimeTypes: ['text/*'], | ||
extensions: ['.txt'], | ||
}, | ||
]); | ||
// Open all files in a directory, | ||
@@ -76,3 +91,3 @@ // recursively including subdirectories. | ||
```js | ||
// Options are optional. | ||
// Options are optional. You can pass an array of options, too. | ||
const options = { | ||
@@ -118,3 +133,3 @@ // List of allowed MIME types, defaults to `*/*`. | ||
```js | ||
// Options are optional. | ||
// Options are optional. You can pass an array of options, too. | ||
const options = { | ||
@@ -121,0 +136,0 @@ // Suggested file name to use, defaults to `''`. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28892
201