Socket
Socket
Sign inDemoInstall

axios-jquery-adapter

Package Overview
Dependencies
10
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    axios-jquery-adapter

Axios adapter for jquery.ajax


Version published
Maintainers
1
Install size
237 kB
Created

Readme

Source

axios-jquery-adapter

Axios adapter for jquery.ajax

Quick start

Install via npm or yarn or pnpm

$ npm i --save axios-jquery-adapter
# or yarn
$ yarn add axios-jquery-adapter
# or pnpm
$ pnpm add axios-jquery-adapter

Example

  1. make an application/json request:
import $ from 'jquery'
import axios from 'axios'
import jqueryAdapter from 'axios-jquery-adapter'

export const axiosJson = axios.create({
  adapter: jqueryAdapter,
})

axiosJson.get('/api/user/list')

$(document).ajaxComplete(function onComplete(event, jqXHR, settings) {
  console.log(settings.url) // ==> /api/user/list
})

License

MIT

FAQs

Last updated on 22 Nov 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc