synchronous-fetch

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i synchronous-fetch

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • snowflake7