Skip to content

scottsloane/stdrequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stdrequest

StdRequest is a WIP wrapper around various request libraries to allow for easy integration and switching of these packages within simple projects

Usage

Import

import { Request } from "stdrequest";

const request = new Request();

Set Engine

request.setEngine("fetch");

Options: xhr, fetch, axios, got, request(depricated)

Make Request

(async()=>{
    res = await request.get("https://jsonplaceholder.typicode.com/todos/1");
})();

About

Standard request library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published