New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@zenfs/fetch

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@zenfs/fetch

ZenFS backend that uses the fetch API to get remote files

unpublished
latest
Source
npmnpm
Version
0.1.7
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ZenFS Fetch Backend

A ZenFS backend for fetching files using HTTP.

[!IMPORTANT] Please read the ZenFS core documentation

For more information, see the API documentation.

Usage

[!NOTE] The examples are written in ESM. If you are using CJS, you can require the package. If running in a browser you can add a script tag to your HTML pointing to the browser.min.js and use ZenFS Fetch via the global ZenFS_Fetch object.

import { configure, fs } from '@zenfs/core';
import { Fetch } from '@zenfs/fetch';

await configure({ backend: Fetch, baseUrl: 'https://example.com/' });

const contents = await fs.readFile('/test.txt', 'utf-8');
console.log(contents);

Keywords

filesystem

FAQs

Package last updated on 06 May 2024

Related posts