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

async-axios

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-axios

Asynchronous method for axios using bluebird promise module.

latest
npmnpm
Version
1.3.3
Version published
Maintainers
1
Created
Source

async-axios

Asynchronous method for axios using bluebird promise module.

const asyAx = require('async-axios')

var data = asyAx.getData(path,config) 
    // result will be response.data
    // console.log(data)

var data = asyAx.get(path,config) 

    // same as this function.
    // var data = new Promise(async (resolve, reject) => {
    //        await axios.get(path, config).then(
    //            (response) => {
    //                resolve(response);
    //            },
    //                (error) => {
    //                reject(error);
    //            }
    //        );
    //    });

var data = asyAx.delete(path,config)  

var data = asyAx.head(path, config)

var data = asyAx.options(path, config)

var data = asyAx.request(config)

var data = asyAx.put(path, data, config)

var data = asyAx.post(path, data, config)

var data = asyAx.patch(path, data, config)

Keywords

axios

FAQs

Package last updated on 23 Jan 2022

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