@sibipro/ask

1.2.1 • Public • Published

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" });
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.1
    1
  • 1.2.0
    0
  • 1.1.5
    0

Package Sidebar

Install

npm i @sibipro/ask

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

6.88 kB

Total Files

8

Last publish

Collaborators

  • tj.newell
  • techsibi
  • mimeticpc
  • bit-cmdr
  • safaa_sibi
  • w33ble
  • ckross01
  • b-eck37