Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@rbxts/fetchu

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbxts/fetchu

Simplifying requests out of Roblox making HttpService easier.

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Frame 594|690x215

[📘Documentation] | [📁 Source Code]

fetchu is a lightweight module created to simplify Roblox's HttpService for faster and efficient requests. Our goal is to minimize all the work you do for one request in a single line of code.

Why fetchu?

Using a tool like fetchu can simplify all Http requests out of Roblox to a single line of code while fetchu handles all errors. Its as easy as doing this:

local import = require(game.ReplicatedStorage.roarn_modules.roarn_tools)

local fetchu = import("fetchu") -- or local fetchu = require(path/to/fetchu)

local response = fetchu.get("https://pokeapi.co/api/v2/pokemon?limit=1", {headers = {
    ["Authorization"] = "my token for authorization!"
}, nocache = true})

print(response)

--[[
    Returns:
    {"count":1118,"next":"https://pokeapi.co/api/v2/pokemon?offset=1&limit=1","previous":null,"name":"bulbasaur","url":"https://pokeapi.co/api/v2/pokemon/1/"}
--]]

Installation

with Roarn (recommended for Rojo users)

To install fetchu with Roarn you can simply do the following command:

roarn install fetchu

Learn more on how Roarn, a Roblox package manager helps your workspace.

with Roblox

If you are preferably using Roblox Studio to develop code you can also install our module through the Roblox marketplace.

Roblox Module

with GitHub

You can also install our package from GitHub releases easily. We have ZIP files available for Rojo users although we would prefer you using Roarn for a more organized workspace.

Questions?

If you have any questions on how fetchu works, please reply on this post! I'll be answering all questions here.

If you have more concerns or need help with fetchu we have community servers!

1024-gold 2|40x40

FAQs

Package last updated on 18 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts