browser-fs-access
Advanced tools
Comparing version 0.14.2 to 0.15.0
// @license © 2020 Google LLC. Licensed under the Apache License, Version 2.0. | ||
export{fileOpen}from"./file-open.mjs";export{directoryOpen}from"./directory-open.mjs";export{fileSave}from"./file-save.mjs"; | ||
export{fileOpen}from"./file-open.mjs";export{directoryOpen}from"./directory-open.mjs";export{fileSave}from"./file-save.mjs";export{default as supported}from"./supported.mjs"; |
{ | ||
"name": "browser-fs-access", | ||
"version": "0.14.2", | ||
"version": "0.15.0", | ||
"description": "File System Access API with legacy fallback in the browser.", | ||
@@ -45,3 +45,3 @@ "browser": "./dist/index.js", | ||
"shx": "^0.3.3", | ||
"terser": "^5.6.0" | ||
"terser": "^5.6.1" | ||
}, | ||
@@ -48,0 +48,0 @@ "eslintConfig": { |
@@ -35,5 +35,12 @@ # Browser-FS-Access | ||
fileSave, | ||
supported, | ||
} from 'https://unpkg.com/browser-fs-access'; | ||
(async () => { | ||
if (supported) { | ||
console.log('Using the File System Access API.'); | ||
} else { | ||
console.log('Using the fallback implementation.'); | ||
} | ||
// Open a file. | ||
@@ -142,2 +149,5 @@ const blob = await fileOpen({ | ||
[@nanaian](https://github.com/nanaian). | ||
Dealing correctly with cross-origin iframes was contributed by | ||
[@nikhilbghodke](https://github.com/nikhilbghodke) and | ||
[@kbariotis](https://github.com/kbariotis). | ||
@@ -144,0 +154,0 @@ ## License and Note |
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
25510
157