Thanks to visit codestin.com
Credit goes to github.com

Skip to content

w33ble/ask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASK

A simple wrapper for node-fetch

View on NPM

Usage

Add it to your repo.

$ yarn add @sibipro/ask

Require ask at the top of your node.js file.

const ask = require('@sibipro/ask');

Making a GET request.

async function makeRequest() {
    return await ask("http://google.com");
}

Making a POST request.

async function makeRequest(headers) {
    return await ask("http://google.com", { method: "POST", headers, responseType: "json" });
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%