acquiesce

1.0.7 • Public • Published

acquiesce

Usage

General API

const acq = require('acquiesce');
acq.get(options);
acq.post(options, data);
acq.put(options, data);
acq.delete(options, data);
acq.request(options, data, method);

Options depend on platform.

Node

acq.get('https://www.google.com').then(({data, response, request}) => {
    console.log(data);
});
//Options as defined by
//https://nodejs.org/api/http.html#http_http_request_options_callback

Browsers that support fetch

acq.get('https://www.google.com')
.then(({data, response, request}) => data.text())
.then(console.log);
//Options as defined by
//https://developer.mozilla.org/en-US/docs/Web/API/Request

Contribute Please!

npm install-test acquiesce

Readme

Keywords

Package Sidebar

Install

npm i acquiesce

Weekly Downloads

1

Version

1.0.7

License

MIT

Last publish

Collaborators

  • tomzer0