Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@browserfs/dom
Advanced tools
BrowserFS backends for DOM APIs. DOM APIs are only available natively in browsers.
[!IMPORTANT] Please read the BrowserFS core documentation!
Storage
: Stores files in a Storage
object, like localStorage
and sessionStorage
.IndexedDB
: Stores files into an IndexedDB
object database.FileSystemAccess
: Store files using the Web File System API.For more information, see the API documentation.
[!NOTE]
The examples are written in ESM. If you are using CJS, you canrequire
the package. If running in a browser you can add a script tag to your HTML pointing to thebrowser.min.js
and use BrowserFS DOM via the globalBrowserFS_DOM
object.
import { configure, fs } from '@browserfs/core';
import { Storage } from '@browserfs/dom';
await configure({ backend: Storage, storage: localStorage });
if (!fs.existsSync('/test.txt')) {
fs.writeFileSync('/test.txt', 'This will persist across reloads!');
}
const contents = fs.readFileSync('/test.txt', 'utf-8');
console.log(contents);
FAQs
DOM backends for BrowserFS
The npm package @browserfs/dom receives a total of 0 weekly downloads. As such, @browserfs/dom popularity was classified as not popular.
We found that @browserfs/dom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.