/sketch-polyfill-fetch

A fetch polyfill for sketch

Primary LanguageJavaScript

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

const fetch = require('sketch-polyfill-fetch')

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