@wowsaruss/ask

1.1.5 • Public • Published

ASK

A simple wrapper for node-fetch

View on NPM

Usage

Add it to your repo.

$ npm install @wowsaruss/ask

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

const ask = require('@wowsaruss/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" });
}

Package Sidebar

Install

npm i @wowsaruss/ask

Weekly Downloads

2

Version

1.1.5

License

MIT

Unpacked Size

4.96 kB

Total Files

7

Last publish

Collaborators

  • wowsaruss