Skip to content

A lite Http/Https Request Library build with Love and my attempt to Homebrew something for others to use.

License

Notifications You must be signed in to change notification settings

DEVMOI/moifetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moifetch

A Lite http/https fetch built with ❤

License Twitter Follow Discord NPM

Introduction

A lite Http/Https Request Library build with Love and my attempt to Homebrew something for other to use.

How to Add

npm i moifetch

yarn add moifetch

Examples

const moifetch = require('./index');

moifetch.GET('https://httpbin.org/get').then(res => {
  expect(res.statusCode).toBe(200);
});

moifetch.PATCH('https://httpbin.org/patch').then(res => {
  expect(res.statusCode).toBe(200);
});

moifetch.POST('https://httpbin.org/post').then(res => {
  expect(res.statusCode).toBe(200);
});


moifetch.PUT('https://httpbin.org/put').then(res => {
  expect(res.statusCode).toBe(200);
});

moifetch.DELETE('https://httpbin.org/delete').then(res => {
  expect(res.statusCode).toBe(200);
});

About

A lite Http/Https Request Library build with Love and my attempt to Homebrew something for others to use.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •