synchronous-fetch
v1.0.0
Published
Super simple synchronous fetch api.
Downloads
18
Maintainers
Readme
Fetch Sync
Super simple synchronous fetch api.
This package is made for fun. Please do not use any synchronous http-request api in production.
Example
const fetchSync = require("synchronous-fetch");
const url = "https://example.com";
const res = fetchSync(url);
const html = res.text();
console.log(html);
ToDo
- Make it more similar to node-fetch