Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 522 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 522 Bytes

sketch-polyfill-fetch

A fetch polyfill for sketch inspired by unfetch. It is automatically included (when needed) when using skpm.

Installation

npm i -S sketch-polyfill-fetch

Usage

import fetch from 'sketch-polyfill-fetch'

fetch("https://google.com")
  .then(response => response.text())
  .then(text => console.log(text))
  .catch(e => console.error(e))