https://github.com/rilysh/node-easyfetch
ESM style forked of node-superfetch which brings superagent type styling inside node-fetch
https://github.com/rilysh/node-easyfetch
fetch node-easyfetch node-fetch node-superfetch request
Last synced: 4 months ago
JSON representation
ESM style forked of node-superfetch which brings superagent type styling inside node-fetch
- Host: GitHub
- URL: https://github.com/rilysh/node-easyfetch
- Owner: rilysh
- License: other
- Created: 2022-01-24T17:10:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T17:38:50.000Z (about 4 years ago)
- Last Synced: 2025-03-06T18:50:27.463Z (11 months ago)
- Topics: fetch, node-easyfetch, node-fetch, node-superfetch, request
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-easyfetch
A forked project of node-superfetch, (node-superfetch: Brings superagent type styling inside node-fetch)
# Info
node-superfetch is perfect, but an issue is that it's not getting updated and node-fetch now support ESM module on node-fetch@v3+, since node-superfetch doesn't getting updated it's still sticked with v2 of node-fetch. An issue for update, I've already created [see here](https://github.com/dragonfire535/node-superfetch/issues/121). And since there's no response, I've migrate it to ESM support.
# Requirements
- Node.js v16+
- ESM module support for your project (recommended)
# Example
```js
import Request from "node-easyfetch";
(async () => {
try {
const { body } = await Request.get("https://registry.npmjs.com/node-fetch");
console.log(body);
} catch (err) {
console.error(err);
}
return null;
})();
```
# License
Same license as node-superfetch [ISC](https://github.com/wory48/node-easyfetch/blob/main/LICENSE)