0.5.2 • Published 5 years ago
sketch-polyfill-fetch v0.5.2
sketch-polyfill-fetch
A fetch polyfill for sketch inspired by unfetch. It is automatically included (when needed) when using skpm.
Installation
:warning: There is no need to install it if you are using skpm!
npm i -S sketch-polyfill-fetch
Usage
Using skpm:
export default () => {
fetch("https://google.com")
.then(response => response.text())
.then(text => console.log(text))
.catch(e => console.error(e));
};
Without skpm:
const fetch = require("sketch-polyfill-fetch");
var onRun = function() {
fetch("https://google.com")
.then(response => response.text())
.then(text => console.log(text))
.catch(e => console.error(e));
};
:warning: only https URLs are supported due a MacOS limitation
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.6
5 years ago
0.4.5
5 years ago
0.4.4
5 years ago
0.4.3
5 years ago
0.4.2
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.7
6 years ago
0.3.6
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.0
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.4
7 years ago