7.0.0 • Published 1 year ago

agents-fetch v7.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
7.0.0

1 year ago

5.2.3

2 years ago

5.0.0

2 years ago

4.2.5

2 years ago

4.2.0

2 years ago

4.0.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago