acquiesce
v1.0.7
Published
# 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.
Downloads
4
Readme
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