Socket
Socket
Sign inDemoInstall

browser-fs-access

Package Overview
Dependencies
0
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.20.0 to 0.20.1

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc