Fecth API adapter module, support CommonJS
var fetch = require("fetchapi-module");
fetch("https://reqres.in/api/users")
.then((res) => res.text())
.then((body) => console.log(body));
fetch("https://reqres.in/api/users")
.then((res) => res.json())
.then((body) => console.log(body));