A simplified version of window.fetch
.
GitHub https://github.com/vilic/ruff-fetch
rap install fetch
Here's a simple example:
var fetch = require('fetch');
fetch('http://vane.life')
.then(function (response) {
return response.text();
})
.then(function (text) {
console.log(text);
});
Please refer to source code for supported APIs.
MIT License.