Package Exports
- @cordisjs/fetch-file
- @cordisjs/fetch-file/package.json
Readme
@cordisjs/fetch-file
Fetch for file: URLs.
Usage
import fetchFile from '@cordisjs/fetch-file';
const response = await fetchFile('file:///path/to/file.txt');fetchFile has the same API as fetch.