sketch-polyfill-fetch-babel-safe

0.1.6 • Public • Published

sketch-polyfill-fetch-babel-safe

This is a (hopefully temporary) fork of sketch-polyfill-fetch that uses cocoascript-class-babel-safe, to allow safe transpilation to ES5.

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

Readme

Keywords

Package Sidebar

Install

npm i sketch-polyfill-fetch-babel-safe

Weekly Downloads

5

Version

0.1.6

License

MIT

Last publish

Collaborators

  • tpettersen