Skip to content

atlassian/sketch-polyfill-fetch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A fork of sketch-polyfill-fetch that depends on cocoascript-class-babel-safe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%