JSPM

@cordisjs/fetch-file

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q9478F
  • License MIT

Fetch for `file:` URLs

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.