@witzbould/utils-fetch-helper

1.0.0 • Public • Published

FetchHelper

Collection of helper functions for fetch

responseExtractContent

Extract the content of a Response from fetch-like request, based on the Content-Type header.
It handles the content types application/json and text/*. Other content types are probably files and will thereby be returned as Blob.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @witzbould/utils-fetch-helper

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      2.04 kB

      Total Files

      4

      Last publish

      Collaborators

      • witzbould