@diahkomalasarinpm/iste-animi-deleniti

1.0.0 • Public • Published

@diahkomalasarinpm/iste-animi-deleniti

build status npm version

A protocol handler wrapper for fetch.

Usage

@diahkomalasarinpm/iste-animi-deleniti doesn't contain any fetch implementations. A map of protocol to implementation must be given to the constructor. This example shows how to create a fetch for file, http and https URLs:

import fileFetch from 'file-fetch'
import httpFetch from 'nodeify-fetch'
import protoFetch from '@diahkomalasarinpm/iste-animi-deleniti'

const fetch = protoFetch({
  [null]: fileFetch,
  file: fileFetch,
  http: httpFetch,
  https: httpFetch
})

const res = await fetch(`file://${process.cwd()}/package.json`)

Readme

Keywords

Package Sidebar

Install

npm i @diahkomalasarinpm/iste-animi-deleniti

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

19.2 kB

Total Files

10

Last publish

Collaborators

  • tul992319