New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@pingtou/axios-jsonp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pingtou/axios-jsonp

A jsonp adapter for axios

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
9
350%
Maintainers
1
Weekly downloads
 
Created
Source

@pingtou/axios-jsonp

npm version npm downloads bundle JSDocs License

A jsonp adapter for axios

support promise,support cancel,same as xhr

Install

npm i @pingtou/axios-jsonp

Usage

import axios from 'axios'
import { jsonpAdapter } from '@pingtou/axios-jsonp'

axios({
  url: '/jsonp',
  adapter: jsonpAdapter,
  callbackParamName: 'c' // optional, 'callback' by default
}).then((res) => {

})

License

MIT

Keywords

jsonp

FAQs

Package last updated on 23 Aug 2024

Related posts