A fetch polyfill for sketch
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

sketch-polyfill-fetch

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

Installation

⚠️ There is no need to install it if you are using skpm!

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))