agents-fetch
TypeScript icon, indicating that this package has built-in type declarations

7.0.0 • Public • Published

Agents Fetch

  • Simple Http/Https request package
  • Considerably a Alternative for node-fetch / axios / got
  • Uses no 3rd party dependencies

Usage

  • Types: JSON, Buffer, Status, Text, Response
  • GET
const { get } = require("agents-fetch")

get("https://httpbin.org/get", "Text", {headers: {test: "works?"}).then(got =>{

    console.log(got)

})
  • POST
const { post } = require("agents-fetch")

post("https://httpbin.org/post", "Text", {headers: {test: "works?"}).then(got =>{

    console.log(got)

})
  • Default
const { default: fetch } =require("agents-fetch")

fetch("https://httpbin.org/get", "Text", {headers: {test: "works?"}).then(got =>{

    console.log(got)

})

Credits

  • Made By Agent Hacker#0477
  • Made using https (inbuilt node module)

Change Log

  • 6.0.0 : Fixed The issue where the whole buffer was not shown
  • 5.2.3 : Added Promise and fetch function
  • 5.0.0 : Added http support
  • 1.0.0 - 4.2.5 : 1st Version Of Module with Minor Fix

Package Sidebar

Install

npm i agents-fetch

Weekly Downloads

1

Version

7.0.0

License

MIT

Unpacked Size

8.01 kB

Total Files

7

Last publish

Collaborators

  • jenil-dev