0.1.7 • Published 1 year ago

@zenfs/fetch v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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);
0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago