New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

acquiesce

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

latest
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

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

Keywords

request

FAQs

Package last updated on 04 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts